title: Can a java file have more than one class?
body: <p>What is the purpose of having more than one class in a Java file ? I am new to Java.</p>
  
  <p><strong>Edited:</strong>
  That can be achieved by creating a inner class inside a public class, right?</p>