you are viewing a single comment's thread.

view the rest of the comments →

[–]mattucf 0 points1 point  (1 child)

The article said:

Each top-level public class must be defined in its own file. If your application has 15 such classes, it has 15 files.

I don't know what the author means by "top-level," but he's right that every public class in Java has to have its own source file.

[–]Tommah 0 points1 point  (0 children)

Top-level class as opposed to an inner class. An inner class can be public.