單項選擇題Java application中的主類需包含main方法,main方法的返回類型是什么?()

A.int
B.float
C.double
D.void


您可能感興趣的試卷

你可能感興趣的試題

1.單項選擇題

關于以下程序段,正確的說法是()

A.行4與行6都將執(zhí)行
B.行4執(zhí)行,行6不執(zhí)行
C.行6執(zhí)行,行4不執(zhí)行
D.行4、行6都不執(zhí)行

2.單項選擇題

指出下列程序運行的結果()

A. good and abc
B. good and gbc
C. test ok and abc
D. test ok and gbc