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:\>javaTest In test Test@73d6a5 10 regards Arun
John Dale
Ranch Hand
Joined: Feb 22, 2001
Posts: 399
posted
0
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
Joined: Dec 07, 2001
Posts: 304
posted
0
Thanks for you reply..Is it memory allocation address? Arun