问题详情

Given: And the following five fragments: public static void main(String...a) { public static void main(String.* a) { public static void main(String... a) { public static void main(String[]... a) { public static void main(String...[] a) { How many of the code fragments, inserted independently at line 2, compile?()

A、 0

B、 1

C、 2

D、 3

E、 4

未搜索到的试题可在搜索页快速提交,您可在会员中心"提交的题"快速查看答案。 收藏该题
查看答案

相关问题推荐

Given: Which two code fragments, inserted independently at line 3, generate the output 4247? ()

A

String s = "123456789";s = (s-"123").replace(1,3,"24") - "89";

B

StringBuffer s = new StringBuffer("123456789");

C

sdelete(0,3).replace(1,3,";24";).delete(4,6);

D

substring(3,6).delete(1,3).insert(1, ";24";);

有着“一境二洞三沙”景点的旅游名山是(  )。

A、崂山

B、阿里山

C、普陀山

D、蓬莱山

(  )的原种数在世界上约为800个,而我国则占了约650个。

A、杜鹃花

B、牡丹

C、山茶花

D、报春花

“江作青罗带,山如碧玉簪”,赞美的是(  )。

A、路南石林

B、武夷山

C、九寨沟

D、漓江山水

Given: What is the result?()

A、 An exception is thrown at runtime.

B、 Compilation fails because of an error in line 7.

C、 Compilation fails because of an error in line 4.

D、 Compilation succeeds and no runtime errors with class A occur.

联系客服 会员中心
TOP