title: When to package-private (no explicit modifier) in java?
body: <p>I have been reading the tutorial <a href="http://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html" rel="nofollow">Controlling Access to Members of a Class</a>. I am confused what might be good use case for using package-private. Because as I understand, you can always change your package declaration to whatever the package declaration of such a class and act as if that is a public class. I understand that this is not a good thing to do, but what is stopping me?</p>