How many classes we can take in single file of java

We can take multiple class in single file as per our need but only one class must be public which contain main method.