• Post Reply Bookmark Topic Watch Topic
  • New Topic

How java stores an object?  RSS feed

 
Jait Thomas
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can some one please explain how Java stores an object in memory? Does it use Heap?

Thanks in advance

Jait Thomas
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java objects are stored in an area called "the Java heap," yes. But it's important to realize that this is an abstract concept. The Java specification says remarkably little about how a Java Virtual Machine should be implemented. Every implementation is free to do many things in its own way. As far as the language and VM specs go, you're not allowed to know things like where in the real computer's memory Java objects go; it's implementation-dependent.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!