2
Answers

What happen in Memory at the time of allocation?

Avinash Aher

Avinash Aher

11y
1.3k
1
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)