+ 2
how memory is allocated for reference type in java
2 odpowiedzi
0
I think. memory gets allocated by constructor. A job=new A();..memory got allocated by A()
0
To create space in the memory for the object and inicialize it we use constructors. Constructors are invoked to create objects from the class blueprint.