下面代碼的運(yùn)行結(jié)果是什么?()
A. 0
B. 1
C. 2
D. 3
E. 4
F. 編譯錯(cuò)誤
G. 運(yùn)行時(shí)拋出異常
您可能感興趣的試卷
你可能感興趣的試題
下面代碼的運(yùn)行結(jié)果是什么?()
A. 42
B. 0042
C. An exception is thrown at runtime.
D. Compilation fails because of an error in line 13.
E. Compilation fails because of an error in line 14.
int[] myArray = new int[] {1,2,3,4,5};
以下哪個(gè)選項(xiàng)可以用一個(gè)數(shù)組創(chuàng)建一個(gè)列表?()
A. List myList = myArray.asList();
B. List myList = Arrays.asList(myArray);
C. List myList = new ArrayList(myArray);
D. List myList = Collections.fromArray(myArray);
Which is true?()
A. Line 3 will print the value 2.
B. Line 3 will print the value 3.
C. Compilation will fail because of an error in line 1.
D. Compilation will fail because of an error in line 2.
下面方法返回值是什么?()
A. REDHE
B. edhe
C. EDH
D. edhel
E. redh
F. RED
對(duì)下面父類方法重寫正確的是()
A.public int method (int a , int b){……}
B.private int method (int a , int b){……}
C.protected void method (int a , int b){……}
D.以上答案都不正確
最新試題
Model是一個(gè)接口,ModelMap是一個(gè)接口實(shí)現(xiàn),作用是將model數(shù)據(jù)填充到()域。
文件上傳時(shí),form表單的method屬性設(shè)置為()。
可以在()文件中進(jìn)行前端控制器的配置。
下列示攔截器,主要用于攔截用戶請(qǐng)求并做相應(yīng)的處理的是()。
組合注解()匹配PUT方式的請(qǐng)求。
DispatcherServlet的全名是org.springframework.web.servlet.DispatcherServlet,它在程序中充當(dāng)著()的角色。
@Controller注解類型用于指示Spring類的實(shí)例是一個(gè)()。
SpringMVC中,使用注解方式時(shí),需要添加()包。
配置前端控制器時(shí)<load-on-startup>1</load-on-startup>表示()。
調(diào)用()組件對(duì)已經(jīng)綁定了請(qǐng)求消息數(shù)據(jù)的參數(shù)對(duì)象進(jìn)行數(shù)據(jù)合法性校驗(yàn)。