0
The get memory with respect to class name
please give ans
2 Réponses
0
The Object creation
Class_Name obj=new Class_Name() ;
obj object will get alloted memory...
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 );
}
}