title: Is there a way to simulate the C++ 'friend' concept in Java?
body: <p>I would like to be able to write a Java class in one package which can access non-public methods of a class in another package without having to make it a subclass of the other class. Is this possible?</p>