以下说法哪个是正确的。Which of the following statements is correct.
A.
JAVA可以有多个main方法there can be multiple main methods in Java programs
B.
JAVA类名必须与文件名一样the class name in Java program must be the same as the file name
C.
JAVA程序的main方法必须写在类里面the main method of Java program must be written in the class
D.
JAVA程序的main方法中如果只有一条语句,可以不用{}(大括号)括起来if there is only one statement in the main method of Java program, it can be enclosed without {} (brace)