問題文
How can a single Java source file be launched without declaring a class around the entry method?
選択肢
- The compiler automatically supplies the surrounding type when it is unqualified, and the entry method may then omit its formal parameters in that file.
- The compiler automatically supplies the surrounding type when it is unqualified, and the entry method may then omit its final modifiers in that file.
- The compiler automatically supplies the surrounding type when it is omitted, and the entry method may then omit its formal parameters in that file.
- The compiler automatically supplies the surrounding type when it is omitted, and the entry method may then omit its final modifiers in that file.