当前位置: 代码迷 >> Java Web开发 >> 求这几道题的答案,再次多谢大家了!很着急多谢了!
  详细解决方案

求这几道题的答案,再次多谢大家了!很着急多谢了!

热度:74   发布时间:2016-04-17 16:20:32.0
求这几道题的答案,再次谢谢大家了!!!很着急,谢谢了!!!!!!!!!!!!!!
Question   1
Which   design   pattern   is   used   to   decouple   presentation   from   core   data   access   functionality?
❍   A.   Business   Delegate
❍   B.   Data   Access   Object
❍   C.   Model-View-Controller
❍   D.   Value   Object
Question   2
Which   design   pattern   is   used   to   minimize   coupling   between   presentation-tier   clients   and   the   application   service   API?
❍   A.   Business   Delegate
❍   B.   Data   Access   Object
❍   C.   Model-View-Controller
❍   D.   Value   Object


Question   2)
What   will   happen   if   you   try   to   compile   and   run   the   following   code  
public   class   MyClass   {  
                public   static   void   main(String   arguments[])   {  
                                amethod(arguments);  
                                }  
                public   void   amethod(String[]   arguments)   {  
                                System.out.println(arguments);  
                                System.out.println(arguments[1]);  
                }  
}
1)   error   Can 't   make   static   reference   to   void   amethod.  
2)   error   method   main   not   correct  
3)   error   array   must   include   parameter  
4)   amethod   must   be   declared   with   String  


Question   5
Read   the   following   code   snippet.
<taglib>
<taglib-uri>
http://www.yourcompany.com/yourTagLibrary
</taglib-uri>
<taglib-location>
/WEB-INF/yourTagLibrary.tld
</taglib-location>
</taglib>
What   statement   applies   to   this   code   snippet?
&#10061;   A.   The   tablib   element   of   the   deployment   descriptor   is   required   if   you   use   a   taglib   directive   in   a   JSP   page   that   references   a   TLD   by   name   (indirectly)   rather   than   by   location   (directly).
&#10061;   B.   This   tag   goes   into   the   WEB-INF/myApplication/web.xml   file.
&#10061;   C.   This   definition   is   incorrect   because   the   taglib-uri   should   have   been   uri.
&#10061;   D.   This   definition   is   incorrect   because   the   taglib   should   have   been   tag.
  相关解决方案