Saturday, January 26, 2013

Memory in Java

Stack memory
object itself : encapsulation

Heap Memory
variables of objects : encapsulation

Context Memory

static variables are placed in seperate memory called context memory hence no need to create variables/instances or objects to access static variables

No comments:

Post a Comment