Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reference Variable

 
faisal usmani
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,

As we know , in java there is a reference variable for referencing Objects . So what is the size of a reference variable .


regards
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's entirely dependent on the JVM implementation. One might assume it's just the right size to hold a pointer. On a 64-bit machine it's probably 64 bits; otherwise, it's probably 32. But it could be larger or smaller -- there's no way to tell from Java.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic