类A中含有一个无形式参数无返回值的方法method,要使用类名A作为前缀就可以调用它,则该方法头的形式为()
A. static void method()
B. public void method()
C. final void method()
D. abstract void method()
查看答案
main方法是Java Application程序执行的入口点,关于main方法的方法首部,以下()项是合法的
A. public static void main()
B. public static void main(String args[])
C. public static int main(String[] arg)
D. public void main(String arg[])
Christopher Marlowe’s best plays include the following except ____()
A. The Jew of Malta
B. The Tragical History of Doctor Faustus
Cymbeline
D. Tamburlaine the Great
给定如下java 代码,在下划线处填入(),代表HelloWorld 类具有main方法,可以独立运行。public class Helloworld {_{ System.out.println(“ hello world” ) ; } }
A. public static void main(String args )
B. static void main(String args[ ] )
C. public static void main(String[ ] strs )
D. public static main(String args[ ] )
Letters are usually delivered by a postman whereas E-mails are sent through()
A. a modem
B. the software
C. the internet
D. a search engine