title: Why are filenames in Java the same as the public class name?
body: <p>In Java, the name of the file should be the same as the name of the <code>public class</code> contained in that file. Why is this a limitation? What purpose does it serve?</p>