If a static variable and instance variable int are created in Java and two instances are created what is the memory occupied by each instance
Answers
Answered by
0
Static variable are class level variables and are stored on stack whereas the instance level variable will be created on heap
Similar questions