单项选择题Youneedtocreateaservletfilterthatstoresallrequestheaderstoadatabaseforallrequeststothewebapplication’shomepage index.jsp .WhichHttpServletRequestmethodallowsyoutoretrievealloftherequestheaders?()A.String[]getHeaderNames()B.String[]getRequestHeaders()C.java.util.IteratorgetHeaderNames()D.java.util.IteratorgetRequestHeaders()E.java.util.EnumerationgetHeaderNames()
单项选择题Youissuedthefollowingcommand:ALTERDATABASEENABLEBLOCKCHANGETRACKING;Whatwillbetheresultofissuingthiscommand?()
单项选择题Inwhichsituationwouldyouusestaticdatabaseregistrationforalistener()
单项选择题publicclassTwoThreads{privatestaticObjectresource=newObject();privatestaticvoiddelay(longn){try{Thread.sleep(n);}catch(Exceptione){System.out.print(”Error);}}publicstaticvoidmain(String[]args){System.out.print(”StartMain);newThread1().start();delay(1000);Threadt2=newThread2();t2.start();delay(1000);t2.interruptdelay(1000);System.out.print(”EndMain);}staticclassThread1extendsThread{publicvoidrun(){synchronized(resource){System.out.print(”Startl);delay(6000);System.out.print(”End1);}}}staticclassThread2extendsThread{publicvoidrun(){synchronized(resource){System.out.print(”Start2);delay(2000);System.out.print(”End2);}}}}Assumethatsleep(n)executesinexactlymmilliseconds,andallothercodeexecutesinaninsignificantamountoftime.Whatistheoutputifthemain()methodisrun?()
单项选择题在C#中,基本的文件操作是由()命名空间提供的类来实现的。
A.System.DataB.System.ConfigurationC.System.CollectionsD.System.IO