好吊妞这里只有精品_美女视频黄a视频全免费应用_亚洲区一二三四区2021_色多多污污下载

當(dāng)前位置:

Java考試格林模擬試題2

發(fā)表時(shí)間:2015/9/14 15:01:13 來(lái)源:互聯(lián)網(wǎng) 點(diǎn)擊關(guān)注微信:關(guān)注中大網(wǎng)校微信
關(guān)注公眾號(hào)

question 6)

which of the following are keywords or reserved words in java?

1) if

2) then

3) goto

4) while

5) case

question 7)

which of the following are legal identifiers

1) 2variable

2) variable2

3) _whatavariable

4) _3_

5) $anothervar

6) #myvar

question 8)

what will happen when you compile and run the following code?

public class myclass{ static int i; public static void main(string argv[]){ system.out.println(i); }}

1) error variable i may not have been initialized

2) null

3) 1

4) 0

question 9)

what will happen if you try to compile and run the following code?

public class q { public static void main(string argv[]){ int anar[]=new int[]{1,2,3}; system.out.println(anar[1]); }}

1) 1

2) error anar is referenced before it is initialized

3) 2

4) error: size of array must be defined

question 10)

what will happen if you try to compile and run the following code?

public class q { public static void main(string argv[]){ int anar[]=new int[5]; system.out.println(anar[0]); }}

1) error: anar is referenced before it is initialized

2) null

3) 0

4) 5

編輯推薦:

JAVA認(rèn)證考試報(bào)考指南 / 更多JAVA考試模擬試題

(責(zé)任編輯:zyc)

2頁(yè),當(dāng)前第1頁(yè)  第一頁(yè)  前一頁(yè)  下一頁(yè)
最近更新 考試動(dòng)態(tài) 更多>