2
Reply

What happen in Memory at the time of allocation?

Avinash Aher

Avinash Aher

Feb 5 2014 8:16 AM
919
If we Declare variable as follows
 
int i =10;
 
And,
 
If we Declare Object as Follows
 
Class1 obj=new Class1();
 
 
How stack and Heap Allocate work with above example ?
 

Answers (2)