您可能感興趣的試卷
你可能感興趣的試題
A.final void methoda() {}
B.void final methoda() {}
C.static void methoda() {}
D.static final void methoda() {}
E.final abstract void methoda() {}
A.默認(rèn)構(gòu)造器初始化方法變量
B.默認(rèn)構(gòu)造器有和它所在類相同的訪問修飾詞.
C.默認(rèn)構(gòu)造器調(diào)用其父類的無參構(gòu)造器.
D.如果一個(gè)類沒有無參構(gòu)造器,編譯器會(huì)它創(chuàng)建一個(gè)默認(rèn)構(gòu)造器.
E.只有當(dāng)一個(gè)類沒有任何構(gòu)造器時(shí),編譯器會(huì)為它創(chuàng)建一個(gè)默認(rèn)構(gòu)造器
如下代碼:
哪兩個(gè)方法能加到Y(jié)類的定義中?()
A. public void aMethod() {}
B. private void aMethod() {}
C. public void aMethod(String s) {
D. private Y aMethod() { return null; }
E. public X aMethod() { return new Y(); }
最新試題
在SpringMVC中,不采用注解,設(shè)計(jì)控制器類需要實(shí)現(xiàn)()。
org.springframeword.web.filter.CharacterEncodingFilter可以用來解決()問題。
@Controller注解類型用于指示Spring類的實(shí)例是一個(gè)()。
SpringMVC中,使用注解方式時(shí),需要添加()包。
下列示攔截器,主要用于攔截用戶請求并做相應(yīng)的處理的是()。
配置視圖解析器(ViewResolver)時(shí),<property name="prefix"value="/WEB-INF/jsp/"/>是設(shè)置視圖的()屬性。
DispatcherServlet的全名是org.springframework.web.servlet.DispatcherServlet,它在程序中充當(dāng)著()的角色。
配置前端控制器時(shí)<load-on-startup>1</load-on-startup>表示()。
ModelAndView對(duì)象的()方法向模型對(duì)象中添加數(shù)據(jù)。
MultipartFile接口的()方法用來判斷上傳的文件是否為空。