Avinash Aher

Avinash Aher

  • NA
  • 283
  • 1.4m

What happen in Memory at the time of allocation?

Feb 5 2014 8:16 AM
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)