File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes java has the address of a variable? and what is the meaning of the instance count? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "java has the address of a variable? and what is the meaning of the instance count?" Watch "java has the address of a variable? and what is the meaning of the instance count?" New topic
Author

java has the address of a variable? and what is the meaning of the instance count?

filson sun
Greenhorn

Joined: Mar 06, 2011
Posts: 12
Like VS or VC ,I can debug the progam ,so that I can see the address of every variable.

1 . Now I use eclipse , I don't know wheather I can see the address of a variable in debug or not.
2 . In eclipse , the Debug has a tab of "Instace count" . I don't know the meaning of it.

Thanks in advance.

the second problem is like this:
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14435
    
  23

Welcome to the Ranch.

Java does not have pointers, like C and C++. The address of a variable is not important in Java; it's not useful to know what the address of a variable is.

The instance count is the number of instances that exist of a class. In your example, it's the number of Node objects that exist at a given moment.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
filson sun
Greenhorn

Joined: Mar 06, 2011
Posts: 12
Jesper de Jong wrote:Welcome to the Ranch.

Java does not have pointers, like C and C++. The address of a variable is not important in Java; it's not useful to know what the address of a variable is.

The instance count is the number of instances that exist of a class. In your example, it's the number of Node objects that exist at a given moment.


Thank you so much.
The Ranch is so good, the same to you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java has the address of a variable? and what is the meaning of the instance count?