2024年Java認(rèn)證歷年考試高頻考點(diǎn)試題附帶答案_第1頁
2024年Java認(rèn)證歷年考試高頻考點(diǎn)試題附帶答案_第2頁
2024年Java認(rèn)證歷年考試高頻考點(diǎn)試題附帶答案_第3頁
2024年Java認(rèn)證歷年考試高頻考點(diǎn)試題附帶答案_第4頁
2024年Java認(rèn)證歷年考試高頻考點(diǎn)試題附帶答案_第5頁
已閱讀5頁,還剩29頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

2024年Java認(rèn)證歷年考試高頻考點(diǎn)試題附帶答案(圖片大小可自由調(diào)整)第1卷一.參考題庫(共25題)1.金星和地球在某一時(shí)刻相對于太陽處于某一確定位置,已知金星繞太陽一周為225日,地球繞太陽一周為365日,問兩個(gè)行星至少經(jīng)過多少日仍同時(shí)回到原來的位置上2.Assume?a?tag?handler?extends?TagSupport.?Which?is?used?within?the?tag?handler?to?get?an?attribute?“foo”?that?is?in?the?application?scope?()A、?pageContext.getAttribute(“foo”);B、?getPageContext().getAttribute(“foo”);C、?pageContext.getApplicationScope(“foo”);D、?pageContext.getAttribute(“foo”,pageContext.APPLICATION_SCOPE).getAttribute(“foo”);E、?getPageContext().getScope(pageContext.APPLICATION_SCOPE).getAttribute(“foo”);3.下列哪項(xiàng)是用于輸入的字符流?()?A、?WriterB、?ReaderC、?OutputStreamD、?Stream4.已知: 則輸出為()A、elcB、elC、lD、lco5.class?Beta?{? public?static?void?main(String?[]?args)?{? Integer?x?=?new?Integer(6)?*?7;? if?(x?!=?42)?{? System.out.print("42?");? }?else?if?(x?〈?new?Integer(44-1))?{? System.out.println("less");? }?else?{? System.out.print("done"); }?}?}? 結(jié)果是什么?()?A、lessB、42C、doneD、編譯失敗6.Java源文件的后綴名是?()??A、.classB、.cC、.javaD、.txt7.public?class?CreditCard?{? private?String?cardlD;? private?Integer?limit;? public?String?ownerName;? public?void?setCardlnformation(String?cardlD,? String?ownerName,?28.?Integer?limit)?{? this.cardlD?=?cardlD;? this.ownerName?=?ownerName;? this.limit?=?limit;? }? } Which?is?true?()?A、?The?class?is?fully?encapsulated.B、?The?code?demonstrates?polymorphism.C、?The?ownerName?variable?breaks?encapsulation.D、?The?cardlD?and?limit?variables?break?polymorphism.E、?The?setCardlnformation?method?breaks?encapsulation.8.現(xiàn)有:? class?ThreadBoth?extends?Threaa?implements?Runnable??{????? public?void?run()??(System.out.print("hi");??}???? public?static?voicl?main?(String??[]??args)??{???? Thread?tl=new?ThreadBoth():????? Thread?t2?=?new?Thread?(tl):???? tl.run():????? t2.run():???? }????????? 結(jié)果為:()??????A、?hi?hiB、?hiC、編譯失敗D、運(yùn)行時(shí)異常被拋出9.A?developer?chooses?to?avoid?using?SingleThreadModel?but?wants?to?ensure?that?data?is?updated?in?athread-safe?manner. Which?two?can?support?this?design?goal?()A、Store?the?data?in?a?local?variable.B、Store?the?data?in?an?instance?variable.C、Store?the?data?in?the?HttpSession?object.D、Store?the?data?in?the?ServletContext?object.E、Store?the?data?in?the?ServletRequest?object.10.Which?can?be?used?to?decode?charS?for?output?()??A、?Java.io.InputStream.B、?Java.io.EncodedReader.C、?Java.io.InputStreamReader.D、?Java.io.InputStreamWriter.E、?Java.io.BufferedInputStream.11.What?is?the?result?() A、7B、49C、343D、Compilation?fails.E、An?exception?is?thrown?at?runtime.12.1.?class?super?{? 2.?public?float?getNum()?{return?3.0f;}? 3.?}? 4.??? 5.?public?class?Sub?extends?Super?{ 6.?? 7.?}?? Which?method,?placed?at?line?6,?will?cause?a?compiler?error?()??A、??Public?float?getNum()???{return?4.0f;?}B、??Public?void?getNum?()??{?}C、??Public?void?getNum?(double?d)???{?}D、??Public?double?getNum?(float?d)?{retrun?4.0f;?}13.同構(gòu)數(shù)? 一個(gè)數(shù)出現(xiàn)在該數(shù)的平方數(shù)的右邊,稱這個(gè)數(shù)為“同構(gòu)數(shù)”。例如,5出現(xiàn)在平方數(shù)25的右邊,25出現(xiàn)在平方數(shù)625的右邊,則5、25都是“同構(gòu)數(shù)”。求[1,1000]之間的所有“同構(gòu)數(shù)”的個(gè)數(shù)14.高次方程尾數(shù)的問題:求13的298次方的最后三位數(shù)是多少?編程實(shí)現(xiàn)之15.已知: 則輸出為()A、GraduateStudentB、StudentC、PersonD、Object16.已知: 那么結(jié)果為?()A、BDB、DBC、CD、編譯錯(cuò)誤17.寫一個(gè)類,并在一個(gè)方法拋出一個(gè)異常。試著在沒有異常規(guī)范的前提下編譯它,觀察編譯器會報(bào)告什么。接著添加適當(dāng)?shù)漠惓R?guī)范。在一個(gè)try-catch從句中嘗試自己的類以及它的異常。18.共有幾組i、j、k符合算式ijk+kji=1333,其中i、j、k是0~9之間的一位整數(shù)19.完成數(shù)組int[]a={100,40,60,87,34,11,56,0}的快速排序、冒泡排序20. Which?two?are?true?()A、?The?function?method?must?have?the?signaturepublic:?String?spin().B、?The?method?must?be?mapped?to?the?logical?name?“spin”?in?the?web.xml?file.C、?The?function?method?must?have?the?signature:public?String?spinIt().D、?The?function?method?must?have?the?signature:public?static?String?spin().E、?The?function?method?must?have?the?signature:public?static?String?spinIT().F、?The?function?class?must?be?named?Spinner,?and?must?be?in?the?package?com.example.21.文本框的常用功能函數(shù)和屬性有哪些?()A、selectAll函數(shù),選中文本框中的所有文字B、getText函數(shù),獲得用戶輸入的文字內(nèi)容C、在構(gòu)造函數(shù)中設(shè)置文本框中可以顯示的字符長度D、setUnicodeChar,設(shè)置文本框能否顯示的字符長度E、seLineWrap,設(shè)置文本框能否顯示多于一行的內(nèi)容22.用公式pi/4=1-1/3+1/5-1/7+…求pi(pi為圓周率)的近似值,直到最后一項(xiàng)的絕對值小于指定的數(shù)(參數(shù)num)為止23.接口中的成員方法被隱含地聲明為()A、publicstaticfinalB、protectedabstactC、privateD、publicabstract24.在一個(gè)單CPU的處理機(jī)中,有P1,P3,P5三個(gè)作業(yè),有兩個(gè)IO設(shè)備IO1,IO2,并且能夠?qū)崿F(xiàn)搶先式多任務(wù)并行工作的多道程序環(huán)境中,投入運(yùn)行優(yōu)先級由高到低P5,P1,P3三個(gè)作業(yè),他們使用設(shè)備的先后順序和占用設(shè)備的時(shí)間分別為:P1:IO2(10ms)CPU(10ms)IO1(30ms)CPU(10ms)P3:IO1(30ms)CPU(10ms)IO2(30ms)CPU(10ms)P5:CPU(20ms)IO1(30ms)CPU(10ms)IO2(15ms)忽略其他的時(shí)間損耗,3個(gè)作業(yè)投入到全部完成的情況下。請問下列哪些選項(xiàng)為IO2的設(shè)備利用率()。A、0.55B、0.26C、0.48D、0.5E、0.3925.Which?two,?inserted?at?line?11,?will?allow?the?code?to?compile?() A、public?class?MinMax{B、public?class?MinMax{C、public?class?MinMax{D、public?class?MinMax{E、public?class?MinMax{F、public?class?MinMax{第2卷一.參考題庫(共25題)1.框架中包括哪些窗格??()A、有根窗格、分層窗格、內(nèi)容窗格、工具欄、玻璃窗格等B、只有根窗格、內(nèi)容窗格、工具藍(lán)C、只有內(nèi)容窗格、工具欄D、只有內(nèi)容窗格2.public?class?Wow?{? public?static?void?go(short?n)?{System.out.println(”short”);?}? public?static?void?go(Short?n)?{System.out.println(”SHORT”);}? public?static?void?go(Long?n)?{System.out.println(”?LONG”);?}? public?static?void?main(String?[]?args)?{? Short?y=?6;? int?z=7;? go(y);? go(z);? }? }? What?is?the?result?()?A、?short?LONGB、?SHORT?LONGC、?Compilation?fails.D、?An?exception?is?thrown?at?runtime.3.Click?the?’Select?and?Place’?button. Place?the?events?in?the?order?they?occur. 4.現(xiàn)有:?? 1.??class?HorseRadish?{?? 2.????//?insert?code?here?? 3.????protected?HorseRadish(int?x)?{??? 4.??????System.out.println("bok?choy");? 5.????}? 6.??}?? 7.??class?Wasabi?extends?HorseRadish?{?? 8.????public?static?void?main(String?[]?args)?{?? 9.??????Wasabi?w?=?new?Wasabi();? 10.???}??? 11.?}?? 分別插入到第?2?行,哪兩項(xiàng)允許代碼編譯并產(chǎn)生"bok?choy"?輸出結(jié)果?()?A、?//?just?a?commentB、?protected?HorseRadish()?{?}C、?protected?HorseRadish()?{?this(42);}D、?protected??HorseRadish()?{?new?HorseRadish?(42);}5.public?class?Test?{? public?static?void?main(String[]?args)?{? int?x?=?0;? assert?(x?>?0)???“assertion?failed”?:?“assertion?passed”;? System.out.println(“Finished”);? }? }? What?is?the?result?()??A、?finishedB、?Compilation?fails.C、?An?AssertionError?is?thrown?and?finished?is?output.D、?An?AssertionError?is?thrown?with?the?message?“assertion?failed”.E、?An?AssertionError?is?thrown?with?the?message?“assertion?passed”.6.84.?try?{? 85.?ResourceConnection?con?=?resourceFactory.getConnection();? 86.?Results?r?=?con.query(”GET?INFO?FROM?CUSTOMER”);? 87.?info?=?r.getData();? 88.?con.close();? 89.?}?catch?(ResourceException?re)?{? 90.?errorLog.write(re.getMessage());? 91.?}? 92.?return?info;? Which?is?true?if?a?ResourceException?is?thrown?on?line?86?()?A、?Line?92?will?not?execute.B、?The?connection?will?not?be?retrieved?in?line?85.C、?The?resource?connection?will?not?be?closed?on?line?88.D、?The?enclosing?method?will?throw?an?exception?to?its?caller.7.public?class?Transfers?{? public?static?void?main(String[]?args)?throws?Exception?{? Record?r1?=?new?Record();? Record?r2?=?new?Record();? doTransfer(r1,?r2,?5);? doTransfer(r2,?r1,?2);? doTransfer(r1,?r2,?1);? //?print?the?result? System.out.println(”rl?=?“?+?r1.get()?+“,?r2=”?+?r2.get());? }? private?static?void?doTransfer(? final?Record?a,?final?Record?b,?final?int?amount)?{? Thread?t?=?new?Thread()?{? public?void?run()?{? new?Clerk().transfer(a,?b,?amount);? }? };? t.start();? }? }? class?Clerk?{? public?synchronized?void?transfer(Record?a,?Record?b,?int?amount){? synchronized?(a)?{? synchronized?(b)?{? a.add(-amount);? b.add(amount);? }? }? }? }? class?Record?{? int?num=10;? public?int?get()?{?return?num;?}? public?void?add(int?n)?{?num?=?num?+?n;?}? }? If?Transfers.main()?is?run,?which?three?are?true?()A、?The?output?may?be?“r1?=?6,?r2?=?14”.B、?The?output?may?be?“r1?=?5,?r2?=?15”.C、?The?output?may?be?“r1?=?8,?r2?=?12”.D、?The?code?may?run?(and?complete)?with?no?output.E、?The?code?may?deadlock?(without?completing)?with?no?output.F、?M?IllegalStateException?or?InterruptedException?may?be?thrown?at?runtime.8.如何在框架中顯示標(biāo)題?()???A、?調(diào)用根窗格的set?Title?函數(shù)顯示B、?調(diào)用內(nèi)容窗格的setTitle函數(shù)顯示C、?調(diào)用框架對象的setTitle函數(shù)顯示D、?調(diào)用框架對象的Border對象的setTitle函數(shù)顯示9.現(xiàn)有2?個(gè)文件: ?1.?package?x;? 2.?public?class?X?{? 3.?public?static?void?doX()?{?System.out.print("doX?");?}? 4.?}? 和:? 1.?class?Find?{? 2.?public?static?void?main(String?[]?args)?{? 3.?//insert?code?here? 4.?}? 5.?}? 哪兩行分別插入到類Find?的第3?行將編譯并產(chǎn)生輸出“doX”??()A、doX();B、X.doX();C、x.X.doX();D、x.X?myX?=?new?x.X();?myX.doX();10.A?RequestDispatcher?can?be?obtained?from?which?two?objects??()A、?ServletConfigB、?ServletContextC、?HttpServletRequestD、?HttpServletResponse11.Given: 11. Which?three?EL?expressions?are?valid?and?evaluate?to?true?()A、${not?map.c}B、${map.d?or?map.a}C、${map.a?and?map.d}D、${map.false?or?map.true}E、${map.a?and?map.b?or?map.a}12.關(guān)閉框架時(shí),缺省地也會關(guān)閉整個(gè)應(yīng)用程序。13.11.?abstract?class?Vehicle?{?public?int?speed()?{?return?0;?}?}? 12.?class?Car?extends?Vehicle?{?public?int?speed()?{?return?60;?}?}? 13.?class?RaceCar?extends?Car?{?public?int?speed()?{?return?150;?}} ?? 21.?RaceCar?racer?=?new?RaceCar();? 22.?Car?car?=?new?RaceCar();? 23.?Vehicle?vehicle?=?new?RaceCar();? 24.?System.out.println(racer.speed()?+?“,???+?car.speed()? 25.?+?“,?“+?vehicle.speed());? What?is?the?result?()?A、?0,?0,0B、?150,?60,?0C、?Compilation?fails.D、?150,?150,?150E、?An?exception?is?thrown?at?runtime.14.設(shè)有方法: 則b可以為()A、nullB、b的類型為AC、b的類型為A的子類D、b的類型為A的父類15.A?programmer?is?designing?a?class?to?encapsulate?the?information?about?an?inventory?item.?A?JavaBeans?component?is?needed?to?do?this.?The?Inventoryltem?class?has?private?instance?variables?to?store?the?item?information:? 10.?private?int?itemId;? 11.?private?String?name;? 12.?private?String?description;? Which?method?signature?follows?the?JavaBeans?naming?standards?for?modifying?the?itemld?instance?variable?()?A、?itemID(int?itemId)B、?update(int?itemId)C、?setItemId(int?itemId)D、?mutateItemId(int?itemId)E、?updateItemID(int?itemId)16.1.?import?java.util.*;? 2.? 3.?Class?FindStuff?{? 4.?public?static?void??main(String?[]?args)?{? 5.?//?insert?code?here? 6.?c.put("x",?123);? 7.?}? 8.?} 分別插入到第5行,哪三行允許代碼編譯?()?A、Map?c?=?new?SortedMap();B、HashMap?c?=?new?HashMap();C、HashMap?c?=?new?Hashtable();D、SortedMap?c?=?new?TreeMap();17.求1~200之間的能被7整除的數(shù)的平方和18.import?java.util.*;? public?class?WrappedString?{? private?String?s;? public?WrappedString(String?s)?{?this.s?=?s;?}? public?static?void?main(String[]?args)?{? HashSet?hs?=?new?HashSet();? WrappedString?ws1?=?new?WrappedString(”aardvark”);? WrappedString?ws2?=?new?WrappedString(”aardvark”);? String?s1?=?new?String(”aardvark”);? String?s2?=?new?String(”aardvark”);? hs.add(ws1);?hs.add(ws2);?hs.add(s1);?hs.add(s2);? System.out.println(hs.size());?}?}? What?is?the?result?()? A、?0B、?1C、?2D、?3E、?4F、?Compilation?fails.G、?An?exception?is?thrown?at?runtime.19.表格包約束的“gridwidth”,“gridheight”屬性有什么作用?()A、表示用戶垃大框架時(shí),單元格所能夠分配到的空間B、表示單元格的寬度和高度C、表示組件的寬度和高度D、表示組件在寬度和高度上分別占用了幾個(gè)單元格20.Swing界面一般都會有一個(gè)頂級Swing容器,但特殊情況下也可以沒有。21.When?using?a?form-based?authentication,?which?action?must?be?used?in?the?login?form?()A、?j_loginB、?j_get_userC、?j_login_checkD、?j_get_securityE、?j_security_check22.下面哪些類是抽象類()A、java.io.InputStreamB、java.io.PrintStringC、java.io.FileWriterD、java.io.Reader23.下面關(guān)于abstract關(guān)鍵字描述錯(cuò)誤的是()。A、abstract關(guān)鍵字可以修飾類或方法B、final類的方法都不能是abstract,因?yàn)閒inal類不能有子類C、abstract類不能實(shí)例化D、abstract類的子類必須實(shí)現(xiàn)其超類的所有abstract方法24.Given?an?HttpSession?session,a?ServletRequest?request,and?a?ServletContext?context,which?retrieves?aURL?to?/WEB-INF/myconfig.xml?within?a?web?application?()A、session.getResource("/WEB-INF/myconfig.xml")B、request.getResource("/WEB-INF/myconfig.xml")C、context.getResource("/WEB-INF/myconfig.xml")D、getClass().getResource("/WEB-INF/myconfig.xml")25.1)?class?Person?{? 2)?public?void?printValue(int?i,?int?j)?{/*…*/?}???? 3)?public?void?printValue(int?i){/*...*/?}???? 4)?}? 5)?public?class?Teacher?extends?Person?{???? 6)?public?void?printValue()?{/*...*/?}???? 7)?public?void?printValue(int?i)?{/*...*/}???? 8)?public?static?void?main(String?args[]){???? 9)?Person?t?=?new?Teacher();???? 10)?t.printValue(10);???? 11)?}??? 12)?}? Which?method?will?the?statement?on?line?10?call??()??A、?on?line?2B、?on?line?3C、?on?line?6D、?on?line?7第3卷一.參考題庫(共25題)1.Which?statement?is?true?() A、Compilation?fails?because?the?hashCode?method?is?not?overridden.B、A?HashSet?could?contain?multiple?Person?objects?with?the?same?name.C、All?Person?objects?will?have?the?same?hash?code?because?the?hashCode??method?is?not?overridden.D、If?a?HashSet?contains?more?than?one?Person?object?with?name="Fred",?then?removing?another?Person,?also?with?name="Fred",?will?remove?them?all.2.靜態(tài)方法可以訪問類中的所有成員3.說明覆蓋和重載之間的區(qū)別。4.What?is?the?result?() A、r,?t,?t,B、r,?e,?o,C、Compilation?fails.D、An?exception?is?thrown?at?runtime.5.float?f[][][]?=?new?float[3][][];? float?f0?=?1.0f;? float[][]?farray?=?new?float[1][1];? What?is?valid?()??A、?f[0]?=?f0;B、?f[0]?=?farray;C、?f[0]?=?farray[0];D、?f[0]?=?farray[0][0];6.現(xiàn)有? class?Beverage?{? Beverage?()??{??System.out.print?("beverage?");??}??????? }? class?Beer?extends?Beverage?{? public?static?void?main{string?[]?args)?{??????? Beer?b?=?new?Beer?(14)?;?????? }? public?int?Beer(int?x)?{?????? this?()?;? System.out.print?("beerl")?;????? }? public?Beer()?{?System.out.print("beer2?");?}???? }? 結(jié)果是什么?()?A、beerl?beverageB、beer2?beverageC、beverage?beer2?beerlD、編譯失敗7.下列有關(guān)類、對象和實(shí)例的敘述,正確的是哪一項(xiàng)?()?A、類就是對象,對象就是類,實(shí)例是對象的另一個(gè)名稱,三者沒有差別B、對象是類的抽象,類是對象的具體化,實(shí)例是對象的另一個(gè)名稱C、類是對象的抽象,對象是類的具體化,實(shí)例是類的另一個(gè)名稱D、類是對象的抽象,對象是類的具體化,實(shí)例是對象的另一個(gè)名稱8.簡述Java語言有什么特點(diǎn)?9.import?java.awt*;?? public?class?X?extends?Frame?(?? public?static?void?main(string?args)?(? X?x?=?new?X?();?? X.pack();?? x.setVisible(true);? )? public?X?()?(?? setlayout?(new?GridLayout?(2,2));?? Panel?p1?=?new?panel();?? ?Add(p1);?? ?Button?b1=?new?Button?(“One”);?? ?P1.add(b1);? ?Panel?p2?=?new?panel();?? ?Add(p2);?? Button?b2=?new?Button?(“Two”);?? ?P2.add(b2);?? ?Button?b3=?new?Button?(“Three”);? ?add(b3);?? Button?b4=?new?Button?(“Four”);?? add(b4);?? )?? )?? Which?two?statements?are?true??()A、?All?the?buttons?change?height?if?the?frame?height?is?resized.B、?All?the?buttons?change?width?if?the?Frame?width?is?resized.C、?The?size?of?the?button?labeled?“One”?is?constant?even?if?the?Frame?is?resized.D、?Both?width?and?height?of?the?button?labeled?“Three”?might?change?if?the?Frame?is?resized.10.下列類Account的構(gòu)造方法中,聲明正確的是?()????A、Account?(String?name)()B、Account?(String??name)C、Account?(name)()D、NewAccount?(String?name)()11.以下列出的為組件添加動(dòng)作監(jiān)視器的過程中,錯(cuò)誤的是()A、將動(dòng)作監(jiān)聽器添加到組件上;B、將事件響應(yīng)函數(shù)貼到框架的事件響應(yīng)函數(shù)上;C、編寫事件響應(yīng)函數(shù);D、創(chuàng)建動(dòng)作監(jiān)聽器對象;12.Assume?the?scoped?attribute?priority?does?NOT?yet?exist.?Which?two?create?and?set?new?request-scoped?attribute?priority?to?the?value?“medium”?()?A、?${priority?=?‘medium’?}?B、?${requestScope[?‘priority’?]?=?‘medium’?}?C、??D、?medium?E、??F、?medium?G、?13.Which?two?create?an?instance?of?an?array?()?A、?int?ia?=?new?int?[15];B、?float?fa?=?new?float?[20];C、?char?ca?=?“Some?String”;D、?Object?oa?=?new?float[20];E、?Int?ia?=?(4,?5,?6)?(1,?2,?3)14.Click?the?’Select?and?Place’?button. Place?the?events?in?the?order?they?occur. 15. Which?is?equivalent?() A、AB、BC、CD、DE、E16.如下代碼,result變量的輸出結(jié)果是多少()。 A、10B、11C、9D、12E、817.Which?thetwo?are?true?about?the?JSTL?core?iteration?custom?tags?()A、?It?may?iterate?over?arrays,?collections,?maps?and?strings.B、?The?body?of?the?tag?may?contain?EL?code,?but?not?scripting?code.C、?When?looping?over?collections,?a?loop?status?object?may?be?used?in?the?tag?body.D、?It?may?iterate?over?a?map,?but?only?the?key?of?the?mapping?may?be?used?in?the?tag?body.E、?When?looping?over?integers?(for?example?begin1=’1’?end=’10’),?a?loop?status?object?may?not?beused?in?the?tag?body.18.Your?company?has?a?corporate?policy?that?prohibits?storing?a?customer’s?credit?card?number?in?any corporate?database.?However,?users?have?complained?that?they?do?NOT?want?to?re-?enter?their?credit?cardnumber?for?each?transaction.?Your?management?has?decided?to?use?client-side?cookies?to?record?the?user’scredit?card?number?for?120?days.?Furthermore,?they?also?want?to?protect?this?information?during?transit?fromthe?web?browser?to?the?web?container;?so?the?cookie?must?only?be?transmitted?over?HTTPS. Which?codesnippet?creates?the?"creditCard"?cookie?and?adds?it?to?the?out?going?response?to?be?stored?on?the?user’s?webbrowser?()A、B、C、D、19.class?Output?{? public?static?void?main(String?[]?args)?{? int?i?=?4;? System.out.print("3"?+?i?+?"?");? System.out.print(i?+?4?+?"6");? System.out.println(i?+?"7");? }? }? 結(jié)果為()?A、7?8611B、7?44647C、34?8611D、34?864720.Which?statement?is?true?about?web?container?session?management?()A、Access?to?session-scoped?attributes?is?guaranteed?to?be?thread-safe?by?the?web?container.B、To?activate?URL?rewriting,?the?developer?must?use?the?HttpServletResponse.setURLRewriting?method.C、If?the?web?application?uses?HTTPS,?then?the?web?container?may?use?the?data?on?the?HTTPS?requeststream?to?identify?the?client.D、The?JSESSIONID?cookie?is?stored?permanently?on?the?client?so?that?a?user?may?return?to?the?webapplication?and?the?web?container?will?rejoin?that?session.21.小程序的起始執(zhí)行函數(shù)是什么?()???A、?init

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論