+ 9

Java public class

Why there is only one public class per Java file? Any help would be appreciated.

13th Jun 2018, 4:49 AM
Rstar
Rstar - avatar
1 Resposta
+ 1
We have to make the java file name as the name of the file.Since each java file has unique name,hence our java file has only single public class. THIS IS MY LOGIC...THERE MAY BE ANY OTHER REASONS FOR THIS😀
14th Jun 2018, 9:22 AM
Brajesh Kumar
Brajesh Kumar - avatar