File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Reference Variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Reference Variable" Watch "Reference Variable" New topic
Author

Reference Variable

faisal usmani
Ranch Hand

Joined: Jan 14, 2006
Posts: 139
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

Joined: Jul 08, 2003
Posts: 24166
    
  30

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.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reference Variable
 
Similar Threads
String objects
regard on k&b book
passing arguments
static reference variable
instance/reference