Can a .java file contain more than one java classes?

classes contain file Java
0
Posted

Can a .java file contain more than one java classes?

0

Yes, a .java file contain more than one java classes, provided at the most one of them is a public class.

Related Questions