As far as I know we can’t have more than one public class in a single java source file, however a single source file can have multiple classes but can have only one public class.
yes ,java sorce filemay contain many public classes.