Multiple choice technology programming languages

Are you allowed to have more than one top-level(non-inner) class definition per source file?

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Java allows multiple top-level classes to be defined in a single source file, provided that at most one of them is declared public. The filename must match the name of the public class (if one exists).