Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

size of a reference variable

 
Jiji Cherian
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
Last day my friend asked me a question for which i was not able to answer.
The Question is.
What is the bit size of a reference variable in java?
Please revert back with the right answer.
Thank You.
 
Ashwin Kumar
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bit size of a reference variable is JVM dependant. It can be assumed as 32-bit but it is not guaranteed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic