What is the purpose of having more than one class in a Java file ? I am new to Java.
Edited: That can be achieved by creating a inner class inside a public class, right?
Yes, as many as you want!
BUT, only one "public" class in every file.