• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
filson sun
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15216
36
Android IntelliJ IDE Java Scala Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
filson sun
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic