java main 函数写法正确的是?
(A)public static void main()
(B)public void main(String[] args)
(C)public static void main(String[] args)
(D)static void main(String[] args)
参考答案
继续答题:下一题
更多java基础知识试题
- 1线程的开启要使用线程实体的()方法,开启的新线程并发执行实体的run方法。
- 2不能构成循环的语句是( )
- 3下列目录中,哪一个是用来存放J K可执行程序的.( )
- 4以下代码输出结果为:class Main {public static void swap(Integer i, Integer j) { Integer temp = new Integer(i); i = j; j = temp; } public static void main(String[] args) { Integer i = new Integer(10); Integer j = new Integer(20); swap(i, j); System.out.println("i = " + i + ", j = " + j); }}
- 5下列Component类的方法中,用于组件可见性的是( )