+1 vote
in JAVA by
The difference between nested public static class and a top level class in Java?

1 Answer

0 votes
by

You can have more than one nested public static class inside one class, but you can only have one top-level public class in a Java source file and its name must be same as the name of Java source file.

Related questions

+1 vote
asked Dec 7, 2020 in JAVA by SakshiSharma
+3 votes
asked May 13, 2021 in JAVA by rajeshsharma
...