Coding style: Multiple classes in a file

Is it a good coding style to have multiple classes in a single file? What are the disadvantages when we don’t have the filename same as the class name ?

Thanks,
Omkar

*In reply to o-hassan:*If all your classes are defined inside a package, the compiler does not care if the classes are in a single file or one file per class (except maybe if you had 100,000 files)

Two key advantages of keeping classes in separately named files are

  • If you name your files the same name as the class it declares, it make the class much easier to find.
  • It makes it easier to manage in a revision control system. You can have separate people work on the classes and check them in separately as well.