packagecom.company.application;publicclassMainClass{publicstaticvoidmain(String[]args){}}AndMainClassexistsinthe/apps/com/company/applicationdirectory.AssumetheCLASSPATHenvironmentvariableissetto.(currentdirectory).WhichtwojavacommandsenteredatthecommandlinewillrunMainClass?()
A.javaMainClassifrunfromthe/appsdirectory
B.javacom.company.application.MainClassifrunfromthe/appsdirectory
C.java-classpath/appscom.company.application.MainClassifrunfromanydirectory
D.java-classpath.MainClassifrunfromthe/apps/com/company/applicationdirectory
E.java-classpath/apps/com/company/application:.MainClassifrunfromthe/appsdirectory
F.javacom.company.application.MainClassifrunfromthe/apps/com/company/applicationdirectory
第1题:
以下哪个main方法是正确的?
A.public static void main(string[] args)
B.public static void Main(String[] args)
C.public static void main(String[] args)
D.public static main(String[] args)
E.public void main(String[] args)
第2题:
以下哪个是有效的Java程序入口函数?
A.public static void main(String[] args);
B.public static void main();
C.public static int main(String[] args);
D.public static void main(int argc, String[] args)
E.main()
第3题:
19、以下哪个是有效的Java程序入口函数?
A.public static void main(String[] args);
B.public static void main();
C.public static int main(String[] args);
D.public static void main(int argc, String[] args)
第4题:
main()方法的正确定义方式是()。
A.public static void main (String [ ] args ) { new NameSurfer().start (args ) ; }
B.public static main (String [ ] args ) { new NameSurfer().start (args ) ; }
C.public void main (String [ ] args ) { new NameSurfer().start (args ) ; }
D.public static void main (String [ ] args ) { NameSurfer().start (args ) ; }
第5题:
main方法是Java应用程序执行的入口点,下面main方法的方法头合法的是()
A.public static void main()
B.public static void main(String[] args)
C.public static void Main(String[] args)
D.public static int main(String[] args)