The get memory with respect to class name | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

The get memory with respect to class name

please give ans

6th Jan 2020, 2:58 PM
ĐƄƱÄÆƟh Danish
ĐƄƱÄÆƟh Danish - avatar
2 Respostas
0
The Object creation Class_Name obj=new Class_Name() ; obj object will get alloted memory...
6th Jan 2020, 3:17 PM
Jayakrishna šŸ‡®šŸ‡³
0
if you mean: how to use class property class myClass { int variable = 10; } public class Program { public static void main(String[] args) { myClass obj = new myClass(); System.out.println( obj.variable ); } }
6th Jan 2020, 8:04 PM
zemiak