File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes size of a reference variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "size of a reference variable" Watch "size of a reference variable" New topic

size of a reference variable

Jiji Cherian

Joined: Apr 15, 2005
Posts: 14
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.

Rgds.<br /> <a href="" rel="nofollow"></a>
Ashwin Kumar

Joined: Oct 13, 2005
Posts: 27
Bit size of a reference variable is JVM dependant. It can be assumed as 32-bit but it is not guaranteed.

SCJP 1.4<br />SCBCD 5.0<br />SCWCD 1.4 (Preparing)
I agree. Here's the link:
subject: size of a reference variable
It's not a secret anymore!