• Post Reply Bookmark Topic Watch Topic
  • New Topic

How many bytes does an object reference in Java occupy  RSS feed

 
Vamsi Polimetla
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi This is My Question :

How many bytes does an object reference in Java occupy
[ February 14, 2007: Message edited by: Vamsi Polimetla ]
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer is: That depends on the JVM implementation. Some JVM's will probably use 32 bits (4 bytes), others will use 64 bits (8 bytes), others may use different sizes.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!