Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what does this mean here?

 
arun mahajan
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
1. what will be the ouput for this means here?
2. I am getting class name and some other information. What is this other information?
my output is as follows:
D:\>java Test
In test
Test@73d6a5
10
regards
Arun
 
John Dale
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
println(someObject) invokes the toString() method of that object. If you don't override the toString method inherited from the universal base class Object, you the toString() method from Object, which, as I recall, returns the class name followed by a hex code that is typically different for each instance of the object.
 
arun mahajan
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for you reply..Is it memory allocation address?
Arun
 
Chad Moore
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic