wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 14074
    
  16

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 7 API documentation
Scala Notes - My blog about Scala
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?
 
Similar Threads
When do we use nested classes
NULL values in FK field
JTree UI
Naming convention for methods with JUnit
How to build xml document from Database