I ran following example from link
What will be the result of attempting to compile and run the following code?
Object o1 = new Object();
Object o2 = new Object();
1) Compile time error
3) No output
4) Run time error
Because the one instance of Object has been assigned to the other with the line
They now point to the same memory address and the test with the equals method will return true
I was not clear on the answer.
>>>now point to the same memory address
do they point to same memory address or point to same object on the pool. please advise.
Any ideas, resources,sample code,links, highly appreciated. thanks in advance.