This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I came across this question in the javaranch mock question.
#208 Can one object access the private variable of another object of the same class? Answer: Yes. Private means �private to the class�. Not private to the object. So two objects of the same class could access each other�s private data.
Can someone explain or give an example? I don't see how it can be done.