java考试题库12

java考试题库12

ID:83420575

大小:5.64 MB

页数:47页

时间:2023-07-14

上传者:灯火阑珊2019
java考试题库12_第1页
java考试题库12_第2页
java考试题库12_第3页
java考试题库12_第4页
java考试题库12_第5页
java考试题库12_第6页
java考试题库12_第7页
java考试题库12_第8页
java考试题库12_第9页
java考试题库12_第10页
资源描述:

《java考试题库12》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

java1.systcm.out.println("Thischaracter"+'A'+"hasthevalue:+(int)'A')Ḅ஺ThischaracterAhasthevalue:65.2.Java᦮ᦪᒹ.(D)A.int,byte,charB.int,shortJong,byte,charC.int,shortJong,charD.int,shortJong,byte3.⊤Ḅx+a%3*(int)(x+y)%2/4,!x=2.5,a=7,y=4.7."⊤x+a%3*Qnt)(x+y)%2/4Ḅ#2.75஺4.$%&'ᢥ&)ᐜ+,-ᑮ/᣸1“3456Ḅ7____(A)A.!,*,<,=B.!,=,*,>=C.!,*,&&,>=D.!=,*,&&,>5.!a=6,b=--4,⊤Ḅ—a%++b(------a)<10?a:b)"---a%++bḄ⊤Ḅ#2(-----a)vva⊤Ḅ#160(a<10&&a>10?a:b)⊤Ḅ#@46.ᢣ%☢CD7ᔠḄ᪗G'(ABE)A5personsBTwoUsersC*pointDthisE_endline7.ᢣ%☢CD7I@JᓝLMᑴOP@JlongQR(D)Alongnumber=345LBlongnumber=0345Clongnumber=0345LDlongnumber=0x345L8.%☢CDS7javaḄTUᦪVW(BC)AshortBBolleanCunitDfloat9.%☢ḄCDX7ᔠḄ(ADE)Along!=4990Binti=4LCfloatf=1—1Ddoubled=34.4Edoublet=0.9F10.%☢CDYᵨ“v<"[“>>”]^'Ḅ▰`7aḄW#bc஺(AC)A.00000100000000000000000000000000«5Jves10000000000000000000000000000000B.00000100000000(X)0000000000000000«5geves11111100ooooooooooooooooooooooooC.11000000000000000000000000000000»5geves11111110ooooooooooooooooooooooooD.11000000000000000000000000000000»5geves00000110oooooooooooooooooooooooo"javaḄ$#d^e@ᐳᨵ3Wᑖi7>>ஹ»>>«,᡻nḄ⌼^ᑖi7ᨵ'pqrWs'pqrWtrWᨵ'pqrḄuv7rᐭḄᨬ-y[ᐗᨬ-'py{|Ws'pqr7rᐭyU}⊡Wtrᨬ/yU}⊡Wᨬ-y஺ry]^'@JuḄᱯ7ᐸq]^ᦪ7&ḄWuv7a@JintᦪVWary32yḄ7ᢝSQS7QᡂWᓽ32Ḅ7aS70,|ᳮWalongᦪ7aq]^ᦪ64ḄWa»64==a;ᨵ@◤⌕uḄry]^'(>>>)aint[longᨵᦔWabyteᡈὅshortḄ]^I¡¢£¤¥ᣚW§7¨'pḄ஺AB⌱⚗&'&«#ᔣtr5#WᦑA56WB7┯¯Ḅ஺CD⌱⚗&'&«#ᨵ'pqr5yWᐸᨬ-y[Tᨬ-'py«°{|WᦑC56WD7┯¯Ḅ஺±java²³ᐸ´ᑴ᪀1.ᑖ᪆%☢·¸4Ḅ᪀[&nClassCirclcArca{finalstaticdoublePl=3.14159¹publicstaticvoidmain(StringargeQ){doubleri=8.0,r2=5.0;system.out.prindn("»¼#"+r1+”Ḅᙊ☢¾="+area(rl));system.out.prindn("»¼#"+r2+"Ḅᙊ☢¾="+area(r2));Staticdoublearca(doublcr){

1Return(PI*r*r);"·¸4¿ÀÁ@J£ÂÃCircleArea,°ᒹÄÁ@JᡂᕒQRPI,@JÆareaIÇÈᙊ☢¾஺ᙠÊÆmainÂÃÁËJÌÍQRriÎr2,ÏÐᵨareaÆᐭᙊ☢¾஺¸4᝞ÒᡠÔW@&n@»¼#8.0Ḅᙊ☢¾=201.06176»¼#5.0Ḅᙊ☢¾=78.539732.᪷V%☢Ḅ×ṹIf(x>0){system.out.printin("@”);}elseif(x>—3){system.out.println(“”)¹)else{system.out.println("±");}ᑨÜxᙠbcÞᑁIᡭᓺâ'ã“”ä(B)Ax>0Bx>—3Cx<=—3Dx<=0&x>—3"x>@3Iᡭᓺâ'ã“”஺3.ᐵ%☢¸4æ56Ḅ7Charmychar=c;Switch(mychar){Default;Case'a':system.out.prindn("a");break;Case'b':system.out.println("b");break;)A¸4┯WdafaultyçSaB¸4┯Wcase⊤èé7intWSêYᵨcharC¸456WëìíÔâ'aD¸456WëìsíÔ"D4.$%¸4Ḅ7bcäPublicclasstcstl{Publicstaticvoidmain(stringargs[]){Inty,x=l,total=0;While(x<=10){Y=x*x;System.out.prindn^;Total+=y;++x;}System.out.prindn("totalis"+total);"¸4᝞%ᡠÔ149162536496481100Totalis3855.$%¸4Ḅ&n7bcäPublicclasstest2{Publicstaticvoidmain(stringargsQ){Intcount=l;

2While(count<=10){Systcm.out.println(count%2==1?w*****”++++4-+4-+?W);4-+count;}))"¸4᝞%ÒᡠÔ****++++++++****++++++++****++++++++****++++++++****++++++++6.ïᡂ%☢Ḅ¸4Wᑭᵨbreak²[¨᪗pḄbreak²ᑖi⌨@òóô[òóô஺For(i=0p<10;i++){Intj=i*10While(j

3ᒹGUBC=!VWX,=3஺BCY3᝞TLᨵJZ[9Ḅ=!2WX,=3஺4.4⌕-\C36]BCᒹ9Ḅᐸ3;<R@6^Cᒹ᜜Ḅ`;<(A)A.bc3@Hᵨd"ᐵfgB.HᵨprivateᐵhgC.HᵨfinalᐵfgD.Hᵨprotactcdᐵfg4.5ij-3ஹᡂᕒஹஹkl%)*3-staticḄᡂᕒ32+,☟᝱஺389Ḅ+,ᡂᕒ஺LᨵHᵨstaticmnḄᡂᕒ+,஺ᙠ!8ᑁlḄ+,kl஺4.6ᢣNq☢ᐵsEFḄtuvw-xyḄzNᳮᵫ஺(AD)A.ᙠjava95ᐕ~ᓫBEFB.ᙠjava9BC356JBCC.ᙠjava9BC3@6]&EFBC3JBCD.javaḄᓫBEF■Hṹ☠4.7ᢣNq☢ᐵsᚗᦈḄtuvw-Ḅ஺(B)A.-3ᡂᕒB.ᵨᐵfgstadeC.ᙠ!9PḄklUᙠc!᡻&D.klᙠHᵨWXᓄ4.8᪷q☢NḄṹᑨCvw-Ḅ(C)PublicclassPerson{staticintarr[]=newinc[10];publicstaticvoidmain(Stringa[]){Systcm.out.println(arr[l];)})A.&┯¢B.&xyR-£&N┯C.¤N,0D.¤N,null4.9(1)BC39PḄᡂᕒ56]Bᒹ9Ḅ3;<஺q☢Ḅum⛲¦§◤⌕Ḅ;<©ᑴ஺(B)(2)᝞T3Ḅ«¬⌕(DḄ\ᡂᕒ@6᜜l3;<஺cHᵨq☢Ḅum⛲¦§◤⌕Ḅ;<©ᑴ஺(A)A.privateB.Lᨵm⛲¦C.publicD.protected4.10ᑖ᪆q°±Ḅ£²TᑮḄ²´-஺(B)PublicclassMyClass{Stringa;Publicstaticvoidmain(String[|args){MyClassstaticvoidMyClass஺*m.gp஺*}VoidMyClassQ{S="construetorw;)VoidgpQ{System.out.println(s);})A.°±£R-¶·Lᨵ¤Nd"g¦B.°±£¶·¤Ng¦¸,”nullwC.°±£¶·¤Ng¦¸,”constructor”D.°±º!£

44.11¾ᐳᡂᕒmaxÃength-BCintÊË᝞TḄËÌᢝÎᦪË100,⌕HᵨCÒÓÔP^C%zNᳮᵫ஺(D)A.publicintmaxJength=100;B.finalintmax_length=100;C.finalpublicintmax_lcngth=100;D.publicfinalintmaxjength=100;4.12(1)BCRectangle3æçèCéឋwidthஹheighto(2)ᙠRcctan@c9æçèC!¬ïðñḄᕜó☢ô஺(3)°ᑭᵨRectanpe¤NBCðñḄᕜó☢ô஺)(1)B^Rectangle3æçèCéឋwidthஹheightḄø°±ṹ᝞q*PublicclassRectangle}StaticintwidthJieight;}(2)ᙠRcctan.c39æçèC!¬ïðñḄᕜó☢ôḄø°±ṹ᝞q*PublicclassRectangle{StaticintwidthJieight;Intðñᕜó(intwjnth){widthþw;height=h;ints=2*(width+height);returns;}intḄ☢(intwjnth){ints=w*h;returns;))(3)ᑭᵨRectan!"#$Ḅᕜ&'☢Ḅ()*+ṹ᝞./Publicclass⚪4_18{Publicstaticvoidmain(StringargQ){Intw=integer.parselnt(args[0]);஻DEF!ᐭᦪIInthJinteger.parselnt(args[l]);஻DEF!ᐭᦪIRectangled=ncwRectangle஺/System.out.println("Ḅᕜ&J"+d.Ḅᕜ&(w,h));System.out.println("Ḅ☢="+d.Ḅ☢(w,h));}}4.13(1)OP#$ArrayRSTU#$᦮ᦪWSXY᪀⌼\]^ᦪW_`I஺(2)bArrayRTUᦪWc'\]STUdec'IḄ\]஺(3)f)ᑭᵨArrayPgᦪWḄc'Ih!"஺i(1)OP#$ArrayRSTU#$᦮ᦪWSXY᪀⌼\]^ᦪW_`IḄ)*+ṹ᝞.஺PublicclassArray{Staticinta[|=newint[5];Intn=5;ArrayO{஻᪀⌼\]For(inti=0;i

5PublicclassArray)Staticinta[|=newint[5];Intn=5;Array஺{஻᪀⌼\]For(inti=0;i

6publicPerson(stringn){name=n;}publicPerson(stringnjnta){namc=nS,agc=a;}publicPerson(stringn,stringdjnta){department=d;)}.☢ḄÔÕ⊤×ب©Uᑮ᪀⌼\]Ḅ""ᜐ(C)APerson(n,a);Bthis(Person(n,a));Cthis(n,a);Dthis(namc,agc);5-9▅á.☢Ḅ+ṹtPublicclassParent{PublicinraddValue(inta,intb){Ints;S=a+b;Returns;)}ClassChildextendsParent{}.ᑡäÕ\]¨©UᐭRChild§sbpqs(BC)A.intaddValue(inta,intb){}B.publicvoidaddValuc(){}C.publicintaddValuc0nta){}D.publicintaddValue(intajntb)throwsMyException{}5-10Ò".☢Ḅ+ṹtClassPerson{Stringname,department;publicvoidprintValueQ{system.out,println("nameis+namc");system.out,println("departmentis+departmentw);.}}PublicclassTeacherextendsPerson{Intsalary;;publicvoidprintValucO{//é'᱄RḄ\]§~Ḅêë——ᡭᓺ|¬'ïðsystem.out,println("salaryis+salary");}}.☢ÔÕ⊤×r¨©UᑮTeacherRḄprintValue஺§sbpqs(D)A.printValueQ;B.this.printValucO/C.person.printValucO/D.super.printValucQ;5-11¯°#$FractionR᡻òᑖᦪóg஺⌕c᝞.1.ᵨ᦮ᦪ⊤ôRḄprivateᡂᕒ¥¦Sf1'f2஺2.öÆ᪀⌼\]S÷ᑖÀᐭfl,ᑖøᐭ£2஺3.öÆú$ᑖᦪUḄóg\]Sûüᑖᐭfl'f2஺4,öÆú$ᑖᦪXḄóg\]Sûüᑖᐭfl'£2஺5.öÆú$ᑖᦪýḄóg\]Sûüᑖᐭfl'£2஺6.öÆú$ᑖᦪ◀Ḅᑖᐭfl£2஺7.a/bḄᡭᓺFractionᦪ஺8.&'ᦪḄᡭᓺFractionᦪ9.)ᑏ+,-./ᑖᦪ஺PublicclassFraction{Privateintfl,f2;Fraction(inta,intb){

7Fl=a;f2=b;Voidᑖᦪ=Qntxljntx2jntyljnty2){Fl=xl*y2+x2*yl;F2=yl*y2;}VoidᑖᦪEQntxljntx2jntyljnty2){Fl=xl*y2-x2*yl;F2=yl*y2;JVoidᑖᦪHQntxljntx2Jntyljnty2){Fl=xl*x2;F2=yl*y2;}Voidᑖᦪ◀Qntxl,intx2jntyl,inty2){F1=xl*x2;F2=yl*y2;}Publicstaticvoidmain(Stringargs[]){Fractionf=newFraction(1,1)Q£ᑖᦪ=(2,3,4,5);system.out.println(“ᑖᦪW”ᓝf.f1+”/££2+”&'ᦪW”+(double)f.fl/f.f2);£ᑖᦪE(2,3,4,5);system.out.println(“ᑖᦪYW”+f.fl+”/f.£2+”&'ᦪW”+(double)f.fl/f.f2);£ᑖᦪH(2,3,4,5);systcm.out.println(“ᑖᦪHW”+£fl+"/,f.f2+”&'ᦪW”+(doublc)f.fl/f.f2);£ᑖᦪ◀(2,3,4,5);system.out.println(“ᑖᦪ◀W”+f.f1+"/"f.f2+”&'ᦪ="+(double)f.fl/f.f2);\]ᐵ_`abcdḄefgDiA.\klmnopk`alq_prst஺B.`amvᨵ᪀⌼zᦪᢚ᪀zᦪ஺C.`amst஺D.`aᒹ~Ḅmᨵnomvᨵno஺5-16]☢ḄkjavaᦻṹᱏfḄeᳮᵫgACDiA.packagetestpackage;PublicclassTcst{//dosomething-•,}B.importjava.iopackagetestpackage;PublicclassTest{//dosomething,,iC.importjava.io.*;ClassPersong//dosomething…iQPublicclassTcst{//dosomething-••}D.importjava.io.*;importjava.awᓃ*;PublicclassTest{//dosomething-••}⌱⚗AfcdḄ⌱⚗BbjavaḄpackage¡¢f-.◀£e¤᜜Ḅ¦\ᩩ¨ᐭᒹmᨵ©kªf¡¢«_package¬ᐸ¯°±¬²⌱⚗CDfcdḄ\kᦻmᨵ©klªᨬp´µᨵ\kpublicḄ᝞ᨵᑣᦻḄᦻ¸¡¢¹lḄl¸º»஺¦¼½JavaḄ¾¿ᜐᳮÁᑴ1.ÃÄf¾¿ÃÄ⌕Æ/¾¿ᜐᳮJavaÇᙠ-.᡻/ÊË⍗ᑮḄÎ᜜ÏÐ┯ÒÓÔ┯ÒᑖÕl஺\lfÖ×ØឋḄÚÛÜÝÞᦋ-.àµsá᡻/âl┯ÒÐ㾿஺ä᜜\lf×ØឋḄᓽ-.æᑮçÖ¿èrḄbc¿é᝱bµëᓫᙢឮï᡻/âl┯ÒÐã┯Òᡈ×Øឋ┯Ò஺┯Òᜐᳮ\ñᵫòótô஺õ¾¿ö÷ø¾¿ᜐᳮµùúûºüḄᜐᳮṹý-.sá᡻/஺JavaþÿḄᜐᳮᑴ஺

82.᝞Exception)*+Ḅ,ᡠ.⌕0ᵨ2☢Ḅ+456ᩭ<=,Vcxtcnds>{…}3.᝞EFG0ᵨ.23HIJEF஺(1)0ᵨtry-carch-finally56,ᙠtryT6)0ᵨthrownewEFVᣓX,ᙠcatchᡈfinallyT6)ZFᜐᳮḄ[ṹ,0]^_`᡻b஺(2)0ᵨthrows56ᙠcdIJḄefcdEFḄ,gh+fiᵫklᜐᳮ஺(3)0ᵨthrownew56mnEF஺4.2☢Ḅ]^ᨵ┯rpublicclassQuizl{publicstaticviodmain(StringargsQ){myMarhodO})myMarhodO{thrownewMyExceptionQ;}}classMyExccption{publicStringtoStringQ{return"”}}}MyException,ᡠ.ᙠmyMathodIJ)0ᵨthrewnew56EF஺5.2☢Ḅ]^FFᳮᵫ஺(C)publicclassQI{publicstaticvoidmain(Stringargs|]){try{thrownewMyExccptionQ;}catch(Exceptionc){System.outprintln("it'scaught!w);}finally{System.out.println("It’sfinallycaught!w);})classMyExccptionextendsException{}A.It'sfinallycaught!B.It'scaught!C.It'scaugjit!D.FIt'sfinallycaught!tryT6)ᣓXVEFMyException,ᑣ᡻bᜐ)ᐭcatchᙽ,᪷Ḅbᓛ,¡⌕catch)ᢣḄḄT£ᓛᡂ¥᡻bḄcatch)Ḅᑁ§,finallyᙽ)Ḅᑁ§¨ᔲh+ª«¬᡻b஺ᡠ.]^F⌱⚗Co6.2ᑡ]^)ᙠ஺neMethod஺IJ±b²Ḅ³´2«µ¶Fᳮᵫ஺(AD)publicviodtestQ(try{oneMethod஺}System.out.println(“³´1”)}}catch(ArraylndexOutofBoundsExceptione){Systcm.out.println("³´2”);}catch(Exceptione){System.out.println("³´3”)}}finally{System.out.println("finally");}}A.³´1B.³´2C.³´3D.finally᝞¸tryT6)Ḅ56ᙠ᡻bfh+,ᑣ᡻bᜐ)ᐭcatchᙽ,᪷Ḅbᓛ,ᨬº☢Ḅ»ᐜbᓛ½¾,¡⌕catch)ᢣḄḄT£ᓛᡂ¥᡻bḄcatch)Ḅᑁ§,finallyᙽ)Ḅᑁ§¨ᔲh+ª«¬᡻b஺tryT6)Ḅ56ᙠ᡻bf²,ᡠ.«µ¶⌱⚗A¿⌱⚗DḄᑁ§஺7.ZF2ᑡÁ᦮ḄIJ1)2){success=conncctO}3)if(success=-1){

94)thrownewTimedOutExceptionO}5)}6)}TimedOutExceptionRuntimeException±bf஺2☢ḄÆÇcdG.¬ÈᐭÉbÁᡂÊIJḄcd?dᳮᵫ஺(BC)A.publicvoidmethod஺B.publicvoidmethod஺throwsExceptionC.publicvoidmethod஺throwsTimedOutExceptionD.publicvoidmethod஺throwTimedOutExceptionE.publicthrowTimedOutExceptionvoidmcthodQ᝞¸]^ᙠ±bḄÌ])EF,ÍÎRuntimeExceptionᡈὅError,Ð]^ÑÒᣓXÍbᜐᳮᡈὅcdEÓ(throws),ᣓXG.0ᵨtry{}catchO[}56,EÓᙠIJcdfcd,GᙠIJḄcdÕ☢ÈÖthrowsXxxxException,EÓØfᙠᔜÚ0ᵨ⌹Ü(,)ᑖ◞஺⚪à)Ḅ]^ᙠ±bfEFḄRuntimeException,ᡠ.ÑÒᣓXᡈὅEÓ,]^ᨵáᨵᣓX,ᡠ.ᙠIJcdfcdEÓ஺ᵫâExceptionᡠᨵḄ᱄,ᡠ.gᯠåG.[⊤TimeOutException,⌱⚗BçCªG.Ḅ஺Éèéᵨkl1.JavaAppletḄIJᵫëìᵨḄ᝞ìᵨpaintGíFApplet)µ¶Ḅí☢,¨ᡠµ¶Ḅᑁ§ᦻïஹñᩩஹóô⁐,ö÷øù,ªÑÒᙠpaintIJ)Áᡂ஺AppletúûᓄÕ✌þ¬íF«ÿᵨpaintᘤ⌚ᩭᵨpaintᘤ〈"ᵨpaintᙠ◤⌕&Applet*☢,-ᵨrepaint,/01ᵨupdate4◀67,8ᵨpainr9:஺2.᝞@AHTMLᦻGᔣAppletI⌴KᦪMNOKᦪP᝞@QᦈSᜐᳮḄMWXHTMLᦻGᨵZ[ீApplet,᪗_,᝞`◤⌕ᔣAppletI⌴Kᦪ,ᙠHTMLᦻGa-bcparam᪗_ᩭᢣfX

10ãᳮᵫ஺(C)A.charstr[|;B.charstr[][|;C.Stringstrl]=newStringflO];D.Stringstr[10];WX⌱⚗CâãḄPZ[äᨵ10[String§¨Ḅᦪå஺⌱⚗AS⌱⚗BâãḄPwx§¨ᦪå஺⌱⚗DḄêáP§Ḅ஺7.᪷ᑡíîᑨðO⊤àáñòtrue஺ãᳮᵫ஺(D)Strings=Mhello”;Stringt=whellowChare஺={'h',T,T,'o'}A.s.cqucls(t);B.t.cquals(c);C.s==t;D.t.equals(neuTString("hello"))E.t==c.WXuvhh÷øxùúḄP÷øxûüḄ÷øᦪPᔲPþZ[§¨,ÿStringḄequals()ḄStringḄᑁᔲ᪵ᐸᦪString"#ᨵ%&'(true,ᐸ*+'(false஺ᡠ/0ᨵ⌱⚗D'(true஺8.6☢Ḅ89:;ᱏ=%&>?┯ABCDᳮᵫ஺(BD)A.Strings="Gonewiththewind”;Stringt="gpod";Stringk=s+t;B.Strings="Gonewiththewind”;StringtUt=s[3]+“one”;C.Strings="Gonewiththewind”;Stringstandard=s.toUppcrCascQ;D.Strings="homedirectory”UStringt=s-"directory”Uabcd⌱⚗AefᵨḄStringhi%/jkfᵨḄlkmn+,opḄc⌱⚗B┯AḄcdStringqrsᓫḄuvᦪwr&fᵨ6᪗mnvyᐸzḄ{ᐗ}஺⌱⚗C~opḄcdroUpperCase()StringḄᵨuvḄᑁᐰᣚdᜧᑏ'(ᣚḄ(Stringhi)஺⌱⚗D┯AḄcdStringhir&(-)mn஺9.᪷6☢Ḅṹᱏ=ᑨ6☢Ḅ89▰dtrue()B(ADE)1)publicvoidcrcatcQ{2)VectormyVect;3)myVect=newVectorQ;4)}A.¤¥Ḅ¦Dr§d¨©myVectᑖ«ᑁ¬®B.¤¥Ḅ¦Dᑖ«ᑮVectorḄ°ᵨḄᑁ¬®C.¤¥±²³´VectorhD.¤µ±²³´VectorhE.¤µ±²dVectorhᑖ«ᑁ¬®ab⌕d·ᑖ«ᑁ¬®¸¹᡻newXxx()½ᵨnew½ᵨ᡻/6Ḅ¾஺(1)d·ᑖ«ᑁ¬®ᐸᡂᕒÁÂᓄd0ᡈὅnull஺(2)᡻hÇeḄÁÂᓄ஺(3)᡻᪀⌼Êᦪ஺(4)¨©Ëᑖ«dᑮᑁ¬ᚮeḄ·Ḅ°ᵨ஺᪷/ÍÎ⌱⚗Adtrue஺⌱⚗B┯AḄ஺⌱⚗C┯AḄ0¦D஺⌱⚗Dtrue஺⌱⚗Etrue஺super(“ÏÐÑÒ”);setSize(450,300);setl.ayout(newFlowlayour஺)Ub1.addActionljstener(this);add(bl);TextFieldtl=newTextField(8);Add(tl);)Publicvoidactionperf()rmed(ActionEvente){try{Class.fbrName("sun.jdbc.odbcJdbcOdbcDriver");}Catch(ClassNotFoundExceptioncx){talnfo.sctTcxt(ex.gctNfcssagcO);

11Systcm.cxit(-1);Try{Sring.URIÞ"jdbc:odbc:ÏÐ'UConnentioncon=DriverManager.getConnection(URpUStatementstmt=con.createStatement();Stringsi=wUPDATEÏÐâãÑÒ⊤SETåæ=25▢HEREÏé=10012”UStmtexecuteUpdate(sl);StmtcloseOUCon.close;)Catch(SQLExceptionex){talnfb.sctTcxt(cx.gctMcssagcO);}}Publicstaticvoidmain(stringargsQ)throwsSQLException(Shujuku6frame=newshujuku6();Frame.showQ;}}ìὅ%/íîᑖ᪆ð:;ñòᦋô:;Ḅõö஺÷᜜ù:;ú¬ᙠᙽý᝞r&ᐵ஺ᨵᦋᙠ☢Ḅᦻ᪾ᐭ஺!java%&'((⚪⌱+,-⌱+./0Ḅjava%&!ὃ('((⚪2java%&ᐵ45ᜧḄ(⚪7ᨵ⌱89᝞⌱;⚪1To⚪?@⚪Ḅ1⚪3~5⚪஺ᨵD(⚪᪷F◤⌕I.ᑤK5LM.NOὃ(ḄPQ7ᨵᦋRSᐜ(⚪Ḅ஺ᙠUᝅ(⚪ḄW☢XYZ(⚪Ḅ[ᫀ஺]^(⚪XY._`Ḅab஺8.120054ᨴ!java%&'((⚪a[-⌱;⚪(Uk⚪2ᑖᐳ50ᑖ)o☢ᔜ⚪ABCDu]⌱⚗wᨵ-]⌱;xyzḄ{|yzḄ⌱;}ᑏᙠ[⚪ᓱ[ᙠ(ᔁ5ᑖ஺(11)ᙠjava%&⁚ṹab᡻Ḅx()AᚗᦈᘤBC+ᘤDᑴ(12)oᑡyzḄx()Ajava%&Ḅ᪗¡¢£ᑖᜧkᑏḄB¤ᦻ¥¦2public¦®¯5°C¤ᦻ¥᡽²¦MjarD¤ᦻ¥publicḄᦪµ5▲(13)oᑡ·¸ᔠºḄjava%&᪗¡¢Ḅx()A_catB5booksC+staticD—3.14159(14)ᙠjava⊤Ãᣚ¢Ḅů¢x()A

12B\fC'n'D\dd(15)ᙠjavaᵫjava+ᘤÌÍÎᐭÏÐÑᙠᵨimportÎᐭḄᒹx()Ajava.appletBjava.awtCjava.utilDjava.lang(16)ᙠjava%&ᡠᨵḄ᪷x()A.java.lang.ObjectB..java.Iang.ClassC.java.applet.AppletD.java.awtFrame(17)ᙠjava%&ᵨPackage%ßàá-]ᒹâZᒹḄãäå᪀çÑx()A.2ᦻ¥Ḅå᪀°B.2ᦻ¥µèḄãä°B.C.2ᦻ¥é°D.2ᦻ¥ᜧk°(18)ᙠê¢ᦻ¥Empbyee.datâíᵨZᦻ¥îMïᦪḄx()A.BuffcrRcadcrB.DatalnputStrcamC.DataOutStrcamD.FilcInputStrcam(19)oᑡ᪀⌼PºḄóᵨPôyzḄx()

13A.ᢥ᯿-÷PºóᵨB.ᵫᵨᡝùúóᵨC.wûLnewÌÍóᵨD.üýþóᵨ(20)PanelÿḄᳮᘤ()A.Gridl^ayoutB.Bordcrl^youtC.FlowLayoutD.CardLayout(21)ᙠjavaᦔḄ()A.ᑁB.〉ᘤC.!D."#(22)char$Ḅ%&(()A.2-727-1B.0^216-1C.-215-215-1D.028-1(23))*ᢝjavadoc,-Ḅ./0()A./**...//B./*/C.//D./**...*/(24)ᓝ2ᑴᦪ16Ḅᓝ52ᑴ⊤780A.OxlOB.0xl6C.OxAD.16(25)Int$publicᡂᕒ;ᢝ?@ᦪ100,ᑣBCDE;<Ḅ0()A.publicintMAX_LENGTH=100B.finalintMAX_LENGTH=100C.publicconstincMAX_LENGTH=100D.publicfinalintMAX_LENGTH=100(26)FᑡHInputStreamIḄ()A.ᦻKLᐭNFilcInputStrcamB.finalintMAX_LENGTU=100C.publicconstintMAX_LENGTH=100D.publicfinalintMAX_LENGTH=100(27)FᑡOPQᵨᩭTUVEWXYḄ()A.java.lang.Runnable!Zᑏstart()OB.java.lang.Runnable!Zᑏrun()OC.java.lang.Thread!Zᑏrun()OD.java.lang.Thread!Zᑏstart()O(28)Fᑡᐵ]JavaApplication^AppletḄ_O`aḄ()A.bᒹdmain஺OB.bfg“iplctvicwer”,-᡻kC.bfg“javac”,-lmD.bnᐭᙠHTMLᦻK᡻k(29)opqAppletrst✌ᐜwᵨḄO()A.stop()BJnit()C.start()D.destroy()(30)Fᑡᐵ]XrxᐜyḄ_O`aḄ()A.XrḄxᐜyHᦋ;ḄB.XrḄxᐜyᙠTUXrt{|ḄC.ᙠTUXr}Ḅ~t᎛bPQ{|D.BC(31)oᘤWAppletᡠᙠ⚓☢twᵨAppletᙢO()A.Start()B.init()C.stop()D.destroy()(32)ᢥ᯿JavaḄ᪗,Fᑡ⊤7VEḄ᪗`aḄ()A.HelloworldB.HelloWorldC.helloworldD.helloWorld(33)FᑡṹVEm┯Ḅk()l)publicclassTest{2)intm,n;3)publicTestQ{}4)publicTest(inta){m=a;}5)publicstaticvoidmain(Stringarg[|){6)Test7)intj,k;8)j=0;k=0;9)tl=ncwTcst();10)t2=newTest(j,k);11)}12))A.3kB.5kC6kD.10k(34)(35)(36)(37)(38)(39)(40)(41)(42)

14(43)FᑡrsḄᙠ◞V¡7VE¢£“Hello”)¤ᑏᙠrsF¥X¦|§rs¨᦮Z`aªkḄ0()pub1icclassTestimplementsRunnabIe{pub1icstaticvoidmain(Stringargs!)Testt=newTest();Treadtt=newThread(t);tt.Start();Pub1icvoidrun(){for(ÉÉ){try}catch(e){}System.Put.Pint1n("He1IO);(}}A.sleep(1000)B.sleep(lOOO)InterruptedExceptionInterruptedExceptionC.Thread.sleep(l000)I).Thread.sleep(1000)RuntimeExceptionInterruptedException(35)▅ÐFᑡṹ}PublicclassPerson{IntarrQ=nc\vint[10]Publicstaticvoidmain(Stingargs[]){System.out.prindn(arr[1]);}}`aḄ_O()A.mtÑÒ┯ÓB.m`aªktÑÒ┯ÓC.LÔÕD.LÔÖ×ஹ¤Ö⚪(Ö2ᑖ)ÛVEÖḄ`aÜᫀᑏᙠÜ⚪ᓱ஺(2)ᙠ☢ᔣàáOḄâã?ூ_2_௃(6)☢ᔣàáḄçèéêbëᡂᵫᔜîàáïᡂᐳ"ᱯòk?Ḅàáïᡂ;<_ூ_6__௃Ḅóᔠõ஺(7)JavaöᦻKᨬøᨵVE_[7]VᐸûḄEᦪH▲஺(8)ᙠJavaᡠḄýᦪï▭ᵫVýᦪï᪀ᡂḄூ_8_](9)StringBufferḄ⊤஺(10)AppletᨵḄ஺(11)ᙠ⌕ᔊ5"#᝱%ᑖ'()#᝱ஹ+,-#᝱ஹ,-#᝱ஹ[J1___]#᝱/01#᝱஺(12)FilelnputStream⁚34BufferedWriter34ObjectOutputStream[_12___]»(14)5▅78ᑡ:ṹ%ᯠ=>Ḅ᡻-@A⊡ᐙD᦮஺PublicclassthrowExccption{staticvoidProc(intsei)ThrowsArithmeticException,ArrayIndexOuK)fBoundsExcepdon{System.out.prindnflnSituation"sei);if(sel==0){System.out.println^noExceptioncaught");return;}Elseif(scl==1){intiArray[]=newint[4];iArray[l]=3;

15Publicstaticvoidmain(Stringarg[]){try{Proc(0);Proc(1);}catch(ArraylndcxOutOfBoundsExccptionc)(System.c)utprintln(,,Catch"+e);}finally{Systcm.out.printlnf'inProcfinally'1);)}᡻-@ApIn.SiruarionONoExceptioncaught[_14_1inprocfinally(15)tuᵨThreadtxnewThread(r)z)^|%⊤}~rinstanccofThreadḄ_ூ_15_].ஹ⌱⚪ᫀ(11)B(12)A(13)A(14)A(15)D(16)A(17)B(18)D(19)C(20)C(21)C(22)B(23)D(24)A(25)D(26)C(27)C(28)C(29)B(30)C(31)A(32)B(33)D(34)D(35)Aஹ⚪ᫀ[2]ூ6௃ூ7௃public[8]ᦪḄᦪ[9]+ᡈ+[101Applet[11][12]3ᡈ3[14]InSituation1[15]false8.220059ᨴx¡Java£¤¥¦¦⚪§¨ஹ⌱⚪(⚪2ᑖ%ᐳ50ᑖ)8ᑡᔜ⚪AஹBஹCஹD⌱⚗%¬ᨵ⌱⚗®%5>®⌱⚗¯ᑏᙠ⚪ᓱ²³´µ¶஺(11)ᵨᩭ¸ᐭº»¼½ḄᡈᒹḄ£¿()A.mainB.importC.publicclassD.class(12)8ᑡÀÁ®Ḅ()A.ÂÃÄ|ᢣ»ÆBJava£¤ÇÄnumberÈNumber²C.Java£¤ÉḄÊË~“஻”D.ÏᦻÑpublic+Òᨵ0ᡈÓ(13)8ᑡÔÕᔠḄJava£¤᪗Ø()A.”ABC”B.&5678C.+rriwoD.salcr(14)8ᑡ:⊤ᓝÛÜᑴ᦮ᦪḄ()A.0123B.1900C.faOOD.0xa2(15)ᙠjava£¤%ßàᵨᡝâ☢äåḄᒹ()A.java.appletB.java.transactionC.java.utilD.java.awt(16)“++”,æḄçèᦪᦪ()A.1B.2C.3D.4(17)ᙠswitch(expression)£¿%expressionḄᦪéÆêå()A.doubleB.charC.byteD.short(18)8ᑡÀÁ%┯ìḄ()A.᱄êå:îB.åï:î᱄C.ðñ᱄D.᱄ᒹò(19)ºópint[]a=newintõ00];ᙠ8ᑡöḄᦪᐗø,ùḄ()A.a[0]B.a[l]C.a[99]D.a[100](20)ᙠᦻÑḄ%ᵨÕz)úûḄ()

16A.mkdirQB.mkdirs஺C.list()D.listRootsO(21)ÿᘤjava.awt.containcrḄ᱄()A.java.awtWindowB.java.awt.ComponcntC.java.awt.FramcD.java.awtPanel(22)ᑡ"ṹ$if(x>0){System.out.Printlnf'first");}elseif(x>-3){System.out.printlnf'second,r);(else{System.out.println—third');}⌕8ᡭᓺ;<=>"second”@AxḄBCE()஺A.xV=0IJx>-3B.x>0C.x>-3D.x<=-3(23)ᑡLM$A┯OḄ()A.FiIeQRSTᦻVB.FileQRWᑏᦻVC.FileQRYZᦻVD.FileQR[BᦻV\]^_(24)ᑡLM$abḄ()A.ReaderdeWB;<ᦻVḄfgB.ReaderdeWBᦪiᦻVḄjkCReaderdeWB;<ᦻVḄjkDReaderdeWB;⁚ᦻVḄdm(25)ᵨpqᐭstᦻVuvḄZipInputStrcamᡠyᒹ()A.java.utilB.java.ioC.java.nioD.java,util.zip(26)Panel}AppletḄ~ᳮᘤ()A.CardlzayoutB.Flowl-ayoutC.BorderLayoutD.GridLayout(27)Swing᪀VᑮSwing⚔ᘤᐵḄ()Ao⌱⚗B.⌱᪾C.ᑁD.ᑖ◞(28)ᦻVḄ\]@A¡⌱ᵨḄ¢£()A.rcadlnt()B.rcadBytcs(intn)C.scck()ongl)D.rcadDoublc()(29)§¨©⊤u$Ḅmodel«ᑖ¡¬Ḅfg()A.AbstractTableModelBJTableC.TableModelD.TableModelable(30)ᑡᐵpAppletḄ±£abḄ()A.AppletJavaAᡠ²³²ᵫJDK$Ḅ¶·ᘤjava¸f¶·¹ºB.AppletḄ»¼d¨⌕¨©>java.applet.AppletᡈJAppletḄ¾C.Applct¿ApplicationḄ»⌕ÀÁ᡻º¢vD.Applet¼QᙠÄÅᘤ$¹º(31)ᑡ"ṹ$AÇÈÉÊË┯OḄº()1)publicclassExercise{2)publicstaticvoidmain(Stringargs[]){3)3)floatf=0.0;4)4)f+=1.0;5))6)}A.Ð2ºB.Ð3ºC.Ð4ºD.Ð6º(32)>ÑᔣdeAppletÓ⌴ÕᦪA³²ᙠHTMLᦻVḄApplet᪗Ø$ÙᵨPARAM⌱⚗஺ᙠAppletÚÛ$[BÕᦪ@A¡⌱ÜḄ¢£()A.getParameter()B.getDocumentBase()C.getCodeBase()D.gedmage()(33)ÝÚᙠÞßᕜá$⌕âᔊ5äå᝱஺᝞èÝÚéêëYå᝱Aᑣí³ᑮîḄdeå᝱()A.¹ºå᝱B.ïðå᝱C.³¹ºå᝱D,ñòå᝱(34)ᑡᐵpJavaóÝÚIôõᑴᑴḄLM$A┯OḄ()A.Java$÷ᐳùᦪiúûḄIôõᑴüᵨ┝ᢈÿBḄ᎝ᵨsuspend()/resume஺C.ᐳᦪ!Ḅ"#ᩗ▲&'()*+privateDJava23ᨵ56789:;┝Ḅ=>?ᑴABᵨCᕒEFᵨGHIᶍ■L;┝ḄMN(35)QᑡST2UVWAppletZᐰ▲ᑴḄ\()A.]^_ᙢaB.bᑏ_ᙢᦻefgC.hi_ᙢE᡻iCD.8klm⚓☢2ḄAppletpqrஹtu⚪(wu2ᑖᐳ20ᑖ){|wlmuḄ}~ᫀᑏᙠ⚪ᓱூ6௃-[151CḄᙠᔁUᑖ஺FᐵtuḄ'(ᑏ᦮஺(6)JavaᐹᨵEឋஹឋஹᏉ¢ឋஹZᐰឋ£¤¥W¦f§᪀Ḅூ_6_௃ᱯ«஺(7)[_7_]®\ᵫJava°±ᘤ³´NᡂḄ¶·¸wm®஺(8)ᙠhiºᵫJava»¼ᘤ³´½ᐭ¿UᵨimportÁ½ᐭḄᒹ\ூ_8௃஺

17(9)ᙠJava2ÄÅ\T+ூ_9__௃ÆÇḄ஺(10)8ÈÉÊᐵḄAppletᨵூ—10_]0,repaint஺£update{0(11)AppletNᕜÏᨵinit0,[_11—]஺,stop()£destroy0஺(12)QᑡCḄÑ\ÒÓÔlmÈÉ5m“Hello!”ḄÙÚ´hi{|C⊡ᐙ᦮஺publicclassThreadTestextendsThread{publicstaticvoidmain(Stringargs[]){ThreadTestt=new[_12_]æT.start();}publicvoidrun(){inti=0;while(true){System.out.prindn("Hello!");if(i++==4)breakæ}}}(13)SwingḄîeᜐᳮ?ᑴᒹñîe£îeòóὅ஺(14)SwingḄ⚔ö÷ᘤᨵJApplet,JWindow,JDialog[___௃஺(15)JavaùúÅiᓄᢈýþ⌕ூ__]QbjectOutStreamᩭ஺ஹ⌱⚪ᫀ(11)B(12)A,JavaḄ*+,-ᨵ/012345“஻”012ᙽ*+:0“/*”=“*/"012(ᦻ᫏ᜐᳮ)*+“/**”=CᦻDEḄpublicIJᨵ0ᡈ12஺M᜜JavaOPQᑖᜧTᑏḄ஺(13)D,JavaḄ᪗YZJ[\ஹ]^5ஹ_ᐗZabc✌[Z஺(14)D,J஺fᜮḄhiᑴ0J0fᜮḄhiᑴᦪ0JOxᡈὅ0XfᜮḄᓝpiᑴᦪ஺(15)D(16)A(17)A,doublevwxḄ0ᐸzv{⌕Ḅ஺(18)D஺9)D(20)A(21)B(22)A(23)B,FilezᙠioᒹE0FilevᑏᦻD0zFilev஺FileᦻDஹᑤ◀ஹᦋḄ,-,ᨵᦻDiᑏḄ,-஺ᫀAᯠᨵ0B1¡vḄ0ᓫ⚗⌱0ᡠJ⌱B஺(24)C(25)D(26)B(27)C(28)C(29)C(30)C(31)B(32)A33)C(34)B(35)D¦ஹ§¨⌱⚪[6]ª■¬ூ7௃class[8]JavaJang[9]²[10]paint[11]start[12]ThreadTest[13jµDC[14]JFrame[15]Object!nputStream8.32006¸4ᨴº»Java¼½¾¿¿⚪ᫀ1.⌱⚪(ÀT⚪2ᑖ0ᐳ50ᑖ)]ᑡᔜ⚪AஹBஹCஹD¦2⌱⚗E0Äᨵ12⌱⚗wxḄ0ÅÆwxḄ⌱⚗Çᑏᙠ⚪ᓱÉÊËÌÍ0ᙠ¿ᔁÍvÏᑖ஺(IDJava¼½E0ÑÒÓᳮḄÔᑴ().A.ᚗÖ×ᦈB.ÙÚÔC.ÛṹÝᐰD.ß5O(12)]ᑡàáE0┯ãḄ()AJava¼½⌕äåOὅÓᳮᑁçBJava¼½ḄÝᐰឋéᙠß2êëÍC.Appler⌕äᙠìᢝJavaḄîïᘤÍñDJava¼½ᨵß5OÔᑴ(13)JavacòóôᜓḄ¬()AJ2MEBJ2SECJ2EED.JDK5.0(14)JDKEḄᦻ᫏ùᡂᘤ()஺A.java.excB.javap.exeC.javadoc.exeD.javaprof.exe

18(15)ᙠJava¼½E0vᐕýþᵨᢣ┐ḄJavaᱯឋ(),AB.᡻CᏉឋD.ᐰឋ(16)"ᑡ$%&Swing,᪀.Ḅ()஺AJPanelBJTableC.MenuDJFrame(17)"ᑡ;<,=$%&WIndowListenerEFḄ()A.WIndowOpencd()B.WIndowCIx>sed()C.WindowActivated()D.mouseDragged()(18)"ᑡMN,=%&OᑖQMNḄ()A.ifMNB.switchMNC.dowhileMND.forMN(19)▅V"ᑡWṹPublicclassTest2()05{Publicstaticvoidmain(Stringargs[]){Strings=Iest;Switch(s){case"Java":Systcm.out.print("java");break;case”Languagew:System.out.print("Language");break;case"Test":System.out.print("Tesr");break;ᐸhij()oA.JavaB.LanguageC.TestD.kl┯(20)▅V"ᑡWṹPublicclassTest2005{Publicstaticvoidmain(Stringargs[]){Systcm.out.printl(~(0xa5)&0xaa);})ᐸhij()oA.0xa5B.10C.0x50D.Oxaa(21)▅V"ᑡWṹPublicclassTcst2005(Publicstaticvoidmain(Stringargs[]){System.out.printl((3>2)?4:5);}}ᐸhij()oA.2B.3C.4D.5(22)▅V"ᑡWṹPublicclassTcst{Publicstaticvoidmain(Stringargs[]){System.our.printl(89>>1);}}ᐸhij()oA.44B.45C,88D.99(23)ᙠApplet,uvᦻx=yz{|}~=ᵨḄ;<()oA.paint()B.init()C.start()D.destroy()(24)ᕜ,Ḅ᝱~()oA.᝱ஹh᝱᝱B.᝱ஹh᝱ஹ᝱᝱C.᝱ஹh᝱ஹh᝱ஹ᝱᝱D.᝱ஹh᝱ஹh᝱ஹឮ᝱᝱

19(25)Thread,hḄ;<()஺A.start()B.resumc()C.init()D.run()(26)"ᑡᐵ&AppletḄ<,=┯Ḅ()஺A.Applet$h=ᐭᑮᐸ¢ᵨ£(᝞¥¦ᘤ),hB.¨ᙠᐰ©ᶍḄ«ᑴ"Vᑏ®ᙢ°±ᦻ.C.Java,$QᢝᔣApplet´⌴¶ᦪD.AppletḄ¸⌕º»¼java.applet.Applet½¾(27)"ᑡ⌱⚗,=$Applet᪗ÂḄ()A.PARAMB.BODYC.CODEBASED.ALT(28)ᙠJavaMÃ,=ÄᦪÅÆÇEḄᢈÉ()஺A.ODBCB.JDBCC.ᦪÅÆᔆËÌÍ£D.ᦪÅÆᔆËÇEÎÏ(29)"ᑡ⚪,=┯Ḅ()஺A.Javak~=⌕ÑÒÓOᵨÔᐳÖÓB.Javak~=⌕ÑÒÓ×ᵨÔᐳÖÓC.Javak~=⌕ÑÒÓ$ᵨÔᐳÖÓD.Javak~=⌕ÑÒÓᵨØᨵÖÓ(30)ÚᱯÛÜᓫÞßÜᓫ=ᑣᱯÛÜᓫÜᓫ½ᐵá()஺A.ᵨᐵáB.ᒹãᐵáC.äåᐵáD.æᐵá(31)Úᦪçaº»¼int[][]a=newint[3][4],ᑣa()A.ÞèᦪçB.éèᦪçC.êèᦪçD.ëèᦪç(32)JavaMÃᵨḄxìṹí()A.ASCIIB.BCDC.DCBD.Unicodc(33)ᙠ£Vᐭxìᦻ.,~=î¨ïᦻ.ð¼ñE¶ᦪḄ()«A.FileReaderB.BufferedReaderC.FilelnputStreamD.ObjectlnputStream(34)javaioᒹḄFile()஺A.xìóB.x⁚óC.õöóD.÷ó(35)"ᑡøù,=Ḅ()஺A.ᙠSerializableEF,º»úûö;>ஹ<<7(7]0(8)᪀89:;<Ḅ=>?ᩭAB᪀8CᙠDḄூ8௃$E:=>஺(9):=>FᑖᡂHIJḄKLMᳮᘤ"[9h(10)Applet":PQᐭᑮ[10]TUḄᦻ8$W:PᙠXYᘤ$/ZḄJava.(11)[ᵨSwing]ᑏApplet,ᑣ_AppletḄ`a[_Db.ூ11௃aḄca஺(12)ᙠJava+,$d#Ḅefg"CPUஹ#iṹ7[12]Ḅklm஺(13)nopᐭq1rWᙠs0tuvw=>xyḄᦪ{|"ூ13௃஺(14)}~Java#|ᐭᒹxᒹḄqjava.ூ14௃஺(15)Java+,$ᨵa"ᡠᨵaᡈḄ᱄axaḄ"ூ15]஺.⌱⚪ᫀ(11)D(12)A(13)A(14)C(15)D(16)C(17)D(18)B(19)D,switch(s)+$Ḅᦪs9:"q1rf஺

20(20)B,~"ᢥ*/01ᓝᑴᦪa5ᣚ.ᑴᦪ"10100101,.01011010,ᓝᑴᦪa5ᣚ.ᑴᦪ"10101010,.01010101஺ᯠs00101101010101010Ḅᢥ*ᓽ[*"1Ḅ/0"1,ᔲᑣ.0,'¡.00001010,ᓽ.ᓝᑴḄ10o(21)C(22)A,¢*/089>>1,ᐜ¤89ᓄ.ᑴᦪ01011001,ᯠᔜᑴ*§¢*¨ᑮ00101100,[Ḅᓝᑴᦪ.44஺(23)A(24)C(25)D(26)C(27)B(28)B(29)A(30)C(31)B(32)D(33)A(34)D(35)C©ஹ⚪ᫀ(6)a(7)>»(8)ªᘤ(9)CardLayout(10)HTML(11)Japplet(12)ᦪ{(13)no(14)lang(15)Oblject8.42006«9ᨴJava+,®¯¯⚪°±ஹ⌱⚪(²⚪2ᑖᐳ50ᑖ)³ᑡᔜ⚪AஹBஹCஹD©⌱⚗$¶ᨵ⌱⚗"ḄḄ⌱⚗·ᑏᙠ⚪ᓱ¸[Ḅ*¹wᙠ¯ᔁw9¨ᑖ஺(11)ZJava#◤⌕Ḅ½ᐹ¿8ᡠᙠḄÀÁ"()஺AsJDKḄbinÀÁBஹJDKḄdemoÀÁCஹJDKḄlibÀÁDஹJDKḄjreÀÁ(12)³ᑡᐵÃJava+,ᱯÅḄÆÇ$┯ÉḄ"()஺AஹJava"☢ᔣÌ#Ḅ]#+,BஹJavaÍᢝᑖKUs0CஹJava"ÏÐÑḄ]#+,DஹJavaÍᢝId#(13)Java+,Ḅ᪶Óᒹ$ÔÕÖᡂ[ᵨḄ%&aḄᒹ"()஺AஹJavaJangBஹJava.urilCஹJava.appletDஹJava.rmi(14)³ᑡᐵÃJava+,import+×DḄÆÇ$┯ÉḄ"()஺A^ᙠJava#$import+Ø-ᨵIBஹᙠJava#$import+Ø-ÙᨵCஹᙠJava#$import+ABᨵDஹᙠJava#$import+ABÚᐭᙠᡠᨵaDbÛÜ(15)ᙠ]ÝJava#yᵨÃᢣDßᡂclassᦻ8*¹Ḅ⌱⚗"()஺

21Aஹ-gBN-dCஹ-verboseDஹ-nowarn(16)▅ç³☢#importjava.io.*;publicclassTypeTransition{publicstaticvoidmain(StringargsQ){chara=fh;inti=100;intj=97;intaa=a+l;Systcm.out.println("aa="+aa);Charbb=(chat)j;System.out.println("bb="+bb);}}᝞()*+(Ḅ-./0bb=a,23-4/Ḅ)*5()oAஹaa=lBஹaa=204Cஹaa=vDஹaa=156(17)▅>?☢ABPublicclassOperatorsAndExpressions{voidequalsMethodQ{Stringsi=newStrring("howarcyou");Strings2=nexvrString("howareyou");System.out.prindn(sl=s2);}publicstaticvoidmain(Stingargs[])(OperationAndExpressionsOperAndExpr=newOperationAndExpressionsQ;OpcrAndExp.cqualsMcthodOM}}ABN/+(5()A.==B.cureC.falseD.equal(18)▅>?☢ḄPṹif(x==0){System.out.println(“ST”)Melseif{x>-3)(Systcm.out.println(“YT”)M}else{Systcm.out.prindn("ZT");)[⌕]ᡭᓺ`ab"ZT”ᑣdexḄfgi5()Aஹx=0&x<=-3Bஹx>0Cஹx>-3Dஹx<=-3(19)?ᑡᐵn᪀⌼qrḄstu┯wḄ5()AஹJavayz{|᪀⌼qr}~}BஹJavayz{|᪀⌼qrᨵgᵨvoidCஹJavayz{|᪀⌼qrDஹJavayz{|᪀⌼qrnewᵨ(20)▅>?☢ḄABimportjavax.swingjOprionPane;publicclassComparison{publicstaticvoidmain(Stringargs|]){StringfirstNumber,஻ᵨᡝ)ᐭ-1ᦪde

22secondNumber,஻ᵨᡝ)ᐭ-2ᦪderesult;஻)*+(deintnumber]஻ᵨn¡Ḅ-1ᦪnumber2;஻ᵨn¡Ḅ-2ᦪ஻ᵨᡝ)ᐭ-1ᦪḄ`abfirstNumber=JOptionPane.sho\vInputDialob(")ᐭ-1᦮ᦪ”)M஻ᵨᡝ)ᐭ-2ᦪḄ`absecondNumber=JOptionPanc.showInputDialob(")ᐭ-2᦮ᦪ“);஻¥`ab¦ᣚ0᦮ᦪ¨number!=Integer.parselnt(firstNumber);number2=Integer.parseInt(firstNumber);஻ª«ᓄ+(de;if(number1=number2)result+=numberl+w=="+number2;if(numbcrl!=numbcr2)rcsult+=numbcrl+w\—n4-numbcr2;if(numberl

23"+numberl+w<»4-number2;if(numberl>number2)result=result+w

24"+numberl+w>"+number2;if(numberl<=number2)rcsult=rcsult+w

25"+numberl+wv="+numbcr2;if(numberl>=numbcr2)result=result+w

26"+numberl+w>="+number2;஻¯°+(JOprionPane.showMessageDialog(nulI.result,w¡+(”,J()ptionPane.INFORMATION.MESSAGE);System.exit(O);0µAB¶·N/¸¹ᑮᔠᳮḄ)*+(ª«ᓄ+(dey½(?ᑜ¿ᜐ)Á5()Aஹresult=""Bஹresult.nullCஹresult=numberlDஹresulr=number2(21)▅>?☢ḄABpublicclassIncrement{publicstaticvoidmain(Stringargs|]){intc;c=5;Syscem.our.prindn(c);System.out.println(c++)MSystem.out.println(c);}}ABN/+(5()Aஹ5Bஹ5Cஹ6Dஹ665766676(22)?ᑡstu┯wḄ5()A.JavaApplication~AppletᡠᵨÃÄÅÆB.ÇÈÉ?JavaApplicationᨵ4main஺qrC.JavaAppletᨵHTMLᦻÎÏN/D.JavaAppletABḄ.classᦻÎᵨjavaÅÆN/(23)?ᑡᐵnJAVAyzu¿AḄstu¶·Ḅ5()A.¿A5ᵫPṹஹᦪஹᑁ᪶Ô᝱Ö4×ØÙᘤ×ᡂB.¿AÜḄᦪ5ᐳÞḄC.ᵨᡝßàThreadḄáâᡈ|äßàThreadåḄáâàæÖçᑴéḄ¿A

27D.êë¿A¸ì᡻/îïðḄ᡻/ñBḄ|ឋ⌼ᡂ᡻/+(Ḅó|(24)▅>?☢ABImportjavax.swingJoptionPang;publicclassBreakLabelTest{publicstaticvoidmain(Stringargs[|){Stringoutput="";Stop:{For(introw=1;ro\v<=1Oq:ow++){For(intcolumn=l;column<=5;column++){If(row==5)Breakstop;Output+=w”;)Output+="n”;}Output+=

28Loopsterminatednormally;}JoptionPane.showMessageDialog(Null,output,”ᵨ4᪗÷øùbreaky½”JoptionPane.INFORM/\TIC)N_MESSAGE);Systcm.cxit(O);)}ABN/+(5()஺Aüýuᨵ5/……Büýuᨵ5/……Cüýuᨵ4/……Düýuᨵ6/……(25)ᜐᳮÿḄ()ASerializableBCloncablcCItcmListcncrDActionListcncr(26)ᙠ!"#$ᑴᦪ'ᦻ)Ḅ*+,-./01ᦔ᳛445ᵨ789:;()஺A.InputStreamB.FiilelnputStreamC.StringBufferD.BufferedReader(27)FG5HIJKLMNOPQRSTUḄVW()஺A.sleep()B.join()C.yield()D.interrupt()(28)▅!\☢M^1.publicclassTryextendsThread{2.Publicstaticvoidmain(Stringargs[]){3.Tryt=newTry();4.t.start();5.}6.7.Publicvoidrun(intj){8.inti=0;9.whilc(i<5){10.System.c)ut.println("stᡂvw”)ll.i++;12.}13.}14.}zM^⌕|ᡭᓺ5S“stᡂvw”-ᦋM^ḄSṹ-M^ᡂ-⌱Ḅᦋ()஺A1SḄextendsThreadᦋ.implementsRunnableB3SḄnewTry஺ᦋ.newThread஺C4SḄ.start஺ᦋ.start(t)D7SḄpublicvoidrun(intj)ᦋ.publicvoidrun஺(29)\ᑡ)ᘤ-WTcxtField$S)ᜐᳮḄ()஺A®ActionListcncrB.cuslistcncrC.MouscMotionListcncrD.ChangcLiscncr

29(30)SwingḄ⌱⚗☢()oAJTabblcdPaneBJLaycrcdpancCJScrollPaneDJspIitPanc(31)¡Java¢£ᵨM^¤¥.()A.Applet;ᡈJApplet;Ḅ§;BJFrame;Ḅ§;C.FrameḄ§;D.WindowḄ§;(32)ᙠAppletḄinit()VW¨©ᵨª-\ᩭᨬᐜ©ᵨḄVW()஺A.run()B.start()C.stop()D.destroy()(33)\ᑡᐵ¯AppletḄ°ᐰ▲ᑴḄ³´-┯¶Ḅ()஺A.·4¸¹\-Ἥ»Applet!-ᑏ½ᙢᦻ)¿ÀB.·4¸¹\-Ἥ»Applet!AppletÁÂTÃ᜜ḄÅÆÂTÇÈÉÊËC·4¸¹\-Ἥ»Applet!"¿ÀÌÍD.·4¸¹\-Ἥ»AppletÎϽᙢÐᡈVW(34)\ᑡ᪗ÒÓ(ÔÕ)ÖÔ×ᑣ-Ḅ()஺A.;ÔḄ✌ÕÚ¢ᑏB.ÛÜVWÔḄ✌ÕÚᜧᑏC.ÔḄ✌ÕÚ¢ᑏD.4Üᐰᜧᑏ(35)0ÞshowDocument()VW-5Appletßà|áâᘤãäᱯ¤URLḄ;().A.AppletB.AppletConlextC.JAppletD.URL#ஹçè(éè2ᑖ-ᐳ20ᑖ)à7¡èḄìᫀᑏᙠì⚪ᓱூ6]~[151^ñḄòLó-ìᙠôᔁóöQᑖ஺÷øùGÖúᐵûÕçèḄüᑏ᦮஺B.þÿᙠᵨJLabelᑣᵨimport[6]JLabel;ᐭJLabel஺(7)ᙠJava3.14156D⊤Ḅூ7௃஺(8)▅ᑡṹpublicclassTest2{publicstaticvoidmcn(Stringargs[]){System.out.println(5/2);}}᡻!"ூ8௃஺(24)▅ᑡṹ#intx=3;while(x<9)x+=2;x++;whileᡂ%᡻Ḅ&ᦪ19௃஺(25)Java()*+ᢝ-./012[10]34-./஺(26)ᙠᑡḄᑜ6ᜐ8ᐭ〉:;<=᡻ᐷ?@AB᪘DE஺PublicclassThrowableException{Publicstaticvoidmain(Stringargs[]){try{thrownewThrowablc("HIJKLMḄAB

30{cath(Throwablee){System.out.println("CaughtThrowable");System.out.prindn^e.getMessageO^+e.getMessageO);System.out.println^e.toStringOf'+e.toStringO);S^^stem.out.printin^e.printstackTraceOp")q(111;}}}(27)ᙠjava.icᒹᨵxyz{34|Datainput*~DataOutput*~Hyூ12௃஺(28)ᙠJava6ᐹᨵ13ᐜ஺(29)ᙠ34Runnable*~{⌕34Ḅூ14௃஺(30)mouscDraggcdQMouscMotionListcncr*~ḄḄᦪூ15௃0(34)⌱⚪ᫀ(34)A/\ACBBCDCABDDCACCDDAABCDB(35)8£⚪¤ᫀBJavax.swingC.¦§¨©ªD.2E.3F.*~G.e.printStackTrace஺ᡈὅe.printStackTrace(System,out)H.RandomAccessFileI.³1ᡈὅ58.52007´4ᨴ¶java·¸¸⚪¤ᫀஹ⌱⚪(º»⚪2ᑖᐳ¾50ᑖ)ᑡᔜ⚪ABCDÀy⌱⚗Âᨵy⌱⚗<=ḄÃÄ<=Ḅ⌱⚗Åᑏᙠ⚪ᓱÈÉḄÊËÌᡭᙠ¸ᔁÌ(Ïᑖ஺(11)javaC++ÈÐᨬÒ@Ḅᱯª()A☢ᔣÖB×ឋ;CᢞÚÛDᨵÜ(12)ᑡÝÞ┯àḄ()Ajavaáâ|ãäḄÜBjavaᨬᜧ▲¨ḄᑭᵨèéêëCjava+ᢝ-6Djava(+ᢝTCP/IPíî(13)ᙠᑡjavaḄᒹáâïðñ☢Ḅ᪀óḄᒹ()Ajava.ioBjavax.swingCjava,netDjava.rmi(14)ᑡÝÞ┯àḄ()Ajava.exejavaḄôõᘤBjavadoc.exejavaḄᦻ᫏ùᡂᘤCjavatriof.exejavaúûᘤḄᒈ᪆þᐹDjavap.exejavaḄúûᘤ(15)ᙠ᡻java{ÄÉᵨÿᑮᘤḄ⌱⚗()A-DB-debugC-vexbosegsD-mx(16)▅☢"#Importjava.io.*-PublicclassTypeTransition{Publicstaticvoidmain(Stringargs|){Chara=fa''Inti=100;

31Longy=456L@Intaa=a+I;Long>7=y-aa;System.out.print(“aa="+aA)};System.out.print(“yy="+yy);}}"#GHIJ()Aas=197yy=259Bas=77yy=259Cas=543yy=288Das=197yy=333(17)▅☢Ḅ"#PublicclassForloopStacement{Publicstaticvoidmain(Srring[|args){Inti,j;For(i=l;jீ5;i++){஻iTUFor(j=l;jvl;j++)஻TUSystem.out.printO+"X"+j+”=+i*j+””)-System.outprintlnO-"#Yᡂ[@iTU\iTU᡻HḄ^ᦪᑖa()A4,10B8,9C9,8D10,10(19)ᑡcde,┯gḄ()Ajavahie@jklmᢣopjkqrᐳtᵨvpwxBjavahie@ᵨabstracy⛲Ḅ{|}~{@ᓄCjavahie@ᒹᡂᕒ\jkḄ~{Djavahie@᪀⌼jkqrᨵ(20)▅☢"#PublicclassExampleStringBuffer{Publicstaticvoidmain(String|]argsStringBufffersb=newStringBuffer("test”);System.out.println("bufferi+sB");System.out.println("length="4-sb.lengthQ);}}"#GHIJeᙠ“length”[Ḅ()A10B4C20D30(21)▅☢Ḅ"#Importjava.io.*;PulicclassExceptionCatch{Publicstaticvoidmain(Stringargs[]){Try{FilcInputStrcamfis=newFileinputStrcam("test");Systcm.out.println("contentoftestis:");}catch(FileN()tFoundExceptic)ne){System.our.println(e);System.out.prindn("message:"+e.getMessageQ);e.printStackTrace(Sestem.out);System.out.println(e);}"#¡¢GH@"#e☢£¤Ḅh¥¦§()Acatch(Fileputearns)BeprinrSrackTrace()Ccatch(IQExceptione)DSestem.out.println(e)(22)ᑡcde@┯gḄ()AᡠrḄx⁚ª«¬InputStrcam{®

32BᡠrḄx⁚ª«¬OutputStreamWriter{®CᡠrḄx°ª«¬OutputStrcamWritcr{®DᡠrḄx°ᐭª«¬Reader{®(23)ᑡcde@¡¢Ḅ()A¤³´µ"ᙠᭆ·¸¹ᐵḄBvp¤"qᒹopµ"Cvpµ"qᒹop¤"DjavaeḄ¤"»ᨵ¼ᐜ¾(24)▅☢"#PublicclassThreadTest{Publicstaticvoidmain(Stringargs[]){Treadri=newThread(ne\vHello஺)-Treadt2=newTread(newHello஺)-Tl.startQ;T2.startQ;})ClassHelloimplementRunnable(Inti;PublicvoidrunQ{While(true){Syctcm.out.println("Hello"+i++)-If(i=5)break;}}ᦋ"#ÃĤ"ÅᵨḄjk()A®Thread{BRunnableCT1.Start()Dt2.start()(25)javahiÆI/OÈÉᡠÊËḄtÌᜐᳮÏᑴ()Ax⁚ªBÑÒªCx°ªDᦻÔª(26)javahiÊËÕÖo×Øjk@ÙÚᦻÔÆ᱄ÜÝwÚjk()AgetAbsolutePathQBgetParentFileQCgetAbsoIuteFileQDgetNameQ(27)ᑡcde@┯gḄ()Ajavahie»ᨵÞß\àáâ┝ḄäåÏᑴB"#eop¤"æ¹çèÆjᢝᨵḄ┝@qêᡂâ┝C}àáâ┝@java"#eqᐜëìÙÚâ┝Ḅí#@î┝ᢥð┝Ḅñ#òóD}àáâ┝@java"#eqᐜëìÙÚâ┝Ḅí#@î┝ᢥð┝Ḅ¡#òó(28)▅☢"#PublicclassThreadTest)Publicstaticvoidmain(Stringargs|])throwsException{Inti=0;Hellot=ncwHclloQ;While(true){Sestem.our.println("Goodmorning"+i++);If(i=2&&t.isAliveQ){Sestem.out.println(^MainwaitingforHelllo!w);TjoinO-஻çètGHIø)If(i==5)breakù}}}ClassHelloextendsThread{Inti;PublicvoidrunQ

33While(true){Scstcm.out.prindn("Hello"+i++);If^=5)break:}}}}ŧ"#¡¢GH@ú¤ᜐÚh¥¦§()At.sleepBt.yieldnCt.interruptDt.start(29)l%nal{ûüýþÿᳮᘤ()ABorderLayoutBCardLayoutCFlowLavoutDGridBaQlar(30)ᑡ┯Ḅ()AJButton᪗᪗ᦻBButton᪗᪗ᦻCAWT᪀ᑮ⚔!ᘤDSwing"ᑮ⚔!ᘤ(31)ᑡ#┯Ḅ()AAppletḄ$%&'FlowLavoutBJApplct(᪀ᑮJApplctḄᑁ!☢+,#"ᑮJApplctCJApplctḄᑁ!☢+Ḅ$%&'-ᳮᘤBorderLayoutDJAppletḄᑁ!☢+Ḅ$%&'-ᳮᘤFlowLavout(32)ᙠ/ᑴAppletḄ123#456ᵨḄ89()Ainit()BstartCpaintComponenrDpaint(33)ᑡ#┯Ḅ()AApplet:ᜐᳮ<ᑴ=java.Aplicition>?BJApplct:ᜐᳮ<ᑴ@ᵨABᘤ8CCApplet:ᜐᳮ<ᑴ@ᵨABᘤ8CDJApplet:ᜐᳮ<ᑴ"@ᵨABᘤ8C(34)DEFᙢH<#IAppletJᐰ▲ᑴMNḄ()AAppletOᙢP89BAppletQஹᑏᙢTU<ḄᦻVWCAppletᔣAppleY᜜Ḅ[\Y▭^_`abDApplet"cd[\᡻dfg(35)J2SDKhijkᡂCmnᜮᦻḄij()AjavahBjavapCjarDjavapஹqr⚪(tr2ᑖ#ᐳ20ᑖ)wxyz{r|ḄMN}ᫀO}⚪ᓱூ6][15]gḄ,#ᡭᙠᔁ,"ᑖ஺(6)[6]ᐭCᜓḄjava஺(7)ᙠjavamn#⊤[7L(8)w▅Q☢fgPublicclassoperat()rsAndEpressions{StringconditionalExpressions(Stringresult;஻score50ᑖ#ᑣpassed,ᔲᑣdoesn'tpassResult=(score>=60)wpassed""doesn'tpass”:Scstcm.out.println(rcsult);Returnresult;)Publicstaticvoidmain(Stringargs[]){OperatorsAndExpressionsoperAndExp=newoperatorsAndExpressionQ;஻ᩩ⊤£COperAndExp.conditionalExpression(65);})ᐸ᡻d[8]D(9)▅QᑡfgOuter:while(i>0){J=3;Inncr:\vhilc(j>0){

34If(j2)breakouter;Scstcm.out.printlnQ+wand+i");J-Â)i-J}ÄÅÆᑮÇÈ,ḄÉzdÊ9Ìo(10)ÏÐÊ101ḄÑᔠÓ஺(11)javamnḄÕÖIÖErrorᡈExceptionIÖ#ÚÛIÖூ11௃IÖ"ÝÄjava4ᵨfgᣓßàÆ஺(12)ᙠjava.i஺ᒹ#ÅÆâãÊ12Ìä஺(13)ᙠjavaf#ᐳæᦪèḄᡠᨵëìãíîïDðñò#6ᵨூ13௃ód┝õᑴ஺(14)SwingᵫùjavaúûḄüÐý᪀#tᨵᙢþṹ14Ḅᢝ஺AWT᪀Ḅᨬᜧ஺(15)Applet#$15ᒹ஺&ஹ⌱)⚪+ᫀ(11)C(12)D(13)B(14)D(15)B(16)A(17)Al8)A(19D(20)B(21)C(22)C(23)C(24)B(25)B(26)B(27)D(28)D(29)C(30)B(31)D(32)D(33)D(34)D(35)A7ஹ89⚪+ᫀ(6)J2ME7)ᣚ>(8)passed(9)3and3(10)CD(11)Error(12)Writer(13)synchronized(14)LM(15)applet8.62007O9ᨴQRjavaUVWXX⚪Y+ᫀZஹ⌱)⚪([\⚪2ᑖᐳ50ᑖ)_ᑡᔜ⚪AஹBஹCஹDஹ7b⌱⚗deᨵZb⌱⚗ghḄijkh⌱⚗lᑏᙠ+⚪opqrs+ᙠXᔁsuᑖ஺(11)_ᑡᐵwSystem#Ḅz{d┯}Ḅ()oASystem#Z^b#BSystem#ᓄCSystem#dᨵ$ឋDSystem#⌕᛻ᦪḄ(12)_ᑡdkhḄ()ABOOLEANcanceled=false;Bbooleancanceled=falseCbooleanCANCHLHD=falseDbooleancanceledQFAISE(13)ᦪ¢dᔜbᐗ¤Ḅᦪ¥#¦()Ao§ḄB§ḄC¨ᑖo§ḄD©ªḄ(14)ᑁ¨#¬®¯ᵨ᜜¨#Ḅᡂᕒ()A´᝱ᡂᕒBᡂᕒCCDD¶sA.B.C.·(15)▅¹_☢»¼PublicclassTest!Publicstaticvoidmain(string!args){System.out.prindn(34+56-6);Systcm.out.println(26*2-3);Systcm.out.println(3*4/2);System.()ut.println(5/2)»¼Æ>ÇÈ(.)A84B90C84D684925234966121422.522.5(16)ᙠJDKÊËdJavaUVÆ>᛻Ḅ᪷ÊË()஺AbinBdemoClidDjre(17)▅¹_☢»¼PublicclassconcatText{Publicstaticvoidmain(String[]args){Stringstrl="sbe";Stringstr2="ABC";Stringstr3=strl.concat(str2);System.our.prindn(str3);»¼ḄÇÈ()oAabcBABCCabcABCDABCabc(18)_ᑡÆÑÒd$wᐵÆÑÒḄ()஺A==B=C+=D-=

35(19)_ᑡUÓd᡻>ÕÖ×ḄUÓ()஺AforyUÓBwhileUÓCcontinucUÓDswitchUÓ(20)_ᑡ〉Úᘤ#d$wÜÝ〉Úᘤ#Ḅ()0AMouseAdapterBKeyAdapterCComponentAdapterDFrameAdapter(21)_ᑡÆÑÒdÞ>qÆÑḄ()oA»B»>C«D«<(22)▅¹_☢»¼PublicclassText2{Publicstaticvoidmain(Stringargs|]){inta=10.b=4.c=20.d=6;system,out,prinrln(a++*b+c*—D);»¼Æ>ÇÈ()oA144B160C140D164(23)▅¹_☢»¼PublicclassTcst3)Pudlicstaticvoidmain(Stringargs[]){intx=3.y=4.z=5strings=>xyz”;system.out.prindn(s+x+y+z);}»¼ÇÆ>ḄÈ()0Axyzl2Bxyz345CxyzxyzD12xyz(24)_ᑡ#d$wè⁚êᐭìí#Ḅ()0AFlielnputStreamBOjiectlnputStreamCFlierlnputStreamDInputStream(25)îᑁïd®ᑏᐭᦪ¥Ḅð()AFilelnputScreamBFileInputStreamCByteArrayOutStreamDByteArraylnputStream(26)_☢»¼◤⌕òEmployeeḄòíÞ>ïóiᙠᑜõᜐ8ᐭkh+ᫀ஺ClassEmployeeimplements{...}ACoparableBSerializableCClonebleDDatalnput(27)▅¹_☢»¼PublicclassTest4{Publicstaticvoidmain(Stringargs[]){Inti=10,j=3;Floatm=213.5f,n=4.0f;System.out.println(i%j);System.out.println(m%n);})»¼Æ>ḄÇÈ()஺ø1.0ù1.5Blù1.5C1.0ù2.5D1ù2.5(28)▅¹_☢Ḅ»¼Importjava.io.*PublicciassByteStreamTest{Publicstaticvoidmain(Stringargs|]A.{Int[]myArray(10,20,30,40)úTry(DataOutStrcamdos=nc\vDataOutstrcam(new("int.dat"));For(inti=0^

36System.out.printlný"IOExceptionúþ;ÿᙠᜐᐭḄṹ()஺AFileOuq?utSereamBByteArrayOutputStreamCBufferedOutputStreamDFileWriter(29)⌕ᙠHTMLᦻ78ᐭApplet,ᙠீapplet,᪗<=>?@Ḅ()஺AAppletA⁚ṹᦻ7ḄURLBAppletEFGHḄIJKLJCAppletA⁚ṹḄᦻ7MDBKC(30)᝞Q⌕ᙠAppletEFᱯ?ḄᦻAஹTUVWXYZᙠᵨᡝ?@ḄApplet]Ḅ^⌕ᑏ`5஺Apaint()Bupdate()Cdrawstring()DdrawLine()(31)᝞Qᵨᡝ?@ḄApplet]gᨵinit()i`ᑣk()஺A=>?@lmmain()i`Bn`opqrCYZopqrstu┯DYZopqrwxyz(32)▅|☢ClassTestimplementRunnable{Publicstaticvoidmain(Stringargs[]{Testt=newtest஺t.star();}Publicvoidrun(){}}ᑡᐵḄḄ0Ayopqrstar஺i`ᙠTest]gᨵ?@Bqropsu┯Fstar()i`gᨵ?@Cyopqrrun()i`gᨵ?@i`Dqropx(33)᝞QᵨThreadt=newTest()lmᑣᑡḄ()ATest]l?⌕RunableBTest]l?ThreadḄ¡]CTest]l?RunableḄ¡]DTest]l?¢ᡂThread]wxRunnable(34)ᑡi`¥¦§uIntcrptcdExccption]«¬Ḅi`0Asuspend()Bresume()Csleep()Dstart()(35)ᑡᜐ᝱Yᵨ¯ᐭ°±᝱Ḅi`()AyieldBstart()Cwait()Dnotify²ஹ³⚪(µ³2ᑖᐳ20ᑖ)tµlm³Ḅ¸ᫀᑏᙠ¸⚪ᓱூ6௃1151¾Ḅ¿ᡭᙠÁᔁḄÃᑖÄÅÆZÇÈᐵÉAḄ³=>ÊᑏË᦮஺(ᙠjavaÎᡠZᦪÑ]«ḄÒJÓÔ?ḄÕgᨵᶇA[6]o(7)ØÙÚÛÜÝᒹß!ஹ&&ஹK[7]o(8)switchᙠµmcase¡ã¯äåḄூ8௃(9)ᵨᡝyæçᵨ᪀⌼i`êyopூ9௃ᐵÉAḄëìçᵨ஺(10)classíîᨵjava[10]ëìïᡂ°ñt⊡ᐙË᦮஺Importjava.io.*PublicclassDirTest{Publicstaticvoidmain(Stringrgs[]{FilemyDiõnewFile("c:ஹprogramFiles/f);System.out.println(myDir+[11].isDiretory஺ú"Æ"isno[")+"adirectory.";(12)lmAppletᙠûüýᑮÿᘤᡂᓄᵨḄூ12௃஺

37(13)javaḄ!"#ᵫ!"%Ḅ[13]()()*+Ḅ!",)-./01᡻)Ḅ஺(14)AVCTḄ89:ᳮᘤᒹ=BordcrLayout>[14]CarbagLayoutJGirdMlayout©(15)java!"ḄQRᨵTUḄCPUஹYṹ[ᦪ]᪀ᡂ஺0QRᵫjava.langூ15௃%()*+JabḄ஺cஹ⌱e⚪gᫀ(11)C(12)B(13)A(14)D(15)A(16)D(17)C(18)A(19)C(20)D(21)D(22)C(23)B(24)D(25)C(26)B(27)B(28)A(29)I)(30)A(31)D(32)A(33)B(34)C(35)Cpஹqr⚪gᫀ(6)sizeof(7)||(8)break(9)new(10z{ᘤ11)myDir(12)start(13)run(14)FlowLayout(15)Thread8.720084ᨴJava⚪gᫀஹ⌱e⚪(⚪2ᑖᐳ50ᑖ)ᑡᔜ⚪A,B,C,Dp⌱⚗ᨵ⌱⚗Ḅ⌱⚗ᑏᙠg⚪ᓱgᙠᔁ¡ᑖ஺(11)ᑡ¢JavaḄ£b┯¥Ḅ()A.ᙠzᑏJava¦%-§¨©ᵫḄª«¬JឋB.JavaḄApplet⌕±z"✌ᐜ´µJFrame¶·C.Javaᵨ¸¹ᘤ᡻)º⁚ṹC.JavaḄ%¼½ᨵ©¾ḄឋJ(13)ᑡ¿À*+Ḅ()A.longL=123LB.longL=3.14156fC.intI="k"D.doubled=1.55989E2f(14)ᑡJava⊤ÅÆ19/3(int)71.7-2*37%3(double)]/8+3ÌÍÎÏ()A6.36422.5B66313.125C6.46722.5D66513.125(15)switchÐ⊤ÅÆ(expression)ḄÒᐕÔḄ%R()AbyteBintCBooleanDchar(16)ᑡÐÕÖᦪ×ØÒÙÚᵨforÛÜḄ()AmyArray{[l]=wOne"M[2]="Two";[3]=wThree;”}BStrings[5]=newString“Zero"“One":Two":Three"“Four”,};CStrings[]newbEng[|{Zero,One,Iwo,Inrcc,rourDStnngs[]=newString[]={Zero,One,Iwo,Ihree,Four(17)swing[awt欪Ḅ89:ᳮᘤ()ACardLayoutB.GridLayoutC.GridBagLayoutD.BoxLayout(18)ᑡÐḄ()A.Systcm.out.println(14-'1')MB.int1=2+”2”;C.Strings=on+one;D.byteb=257M(19)ᑡᐵ麧¨⊤êëÀḄ()AfinalBdefaultCprivateDtransient(20)ᙠJavaìíᑁïᑖðḄ,Íñ()ACardLayoutB.GridLayoutCGridBayoutDBoxLayout(21)▅ó☢"õPublicclassCycle{Publicstaticvoidmain(Stringargs[]){Sysrem.out.printin(args[()]);ᙠö÷)øᐭjavaCycleonetwo,0"õøúḄÎÏ()ACycleBoneCtwoDbABCᙳ¢

38(22)▅ó☢"õPublicclassMyVal{Publicstaticvoidmain(StringargsQ){MyVaim=newMyValQ;m.amechodOM)PublicvoidamethodQ{BooleanbQ=newBoolean[5];}}"õz{,)ÎÏ0AlBnullC""Dz{þÿ(23)▅☢ᦪḄimportjava.lang.Math*;publicclassMorcPrimcsTcst{publicstaticvoidmain(Stringargs|]){long[]primes=newlong[20];primes[0]=21^primes[1]=3L;longnumber=5L;outer;fbur(intcount=2;count

39Catch(lOExceptionioe)|Systcm.out.println(wlOExceptionw);ᙠ☢@ᜐᐭDE⌱⚗H()஺A.myArrayB.dosC.ioeD.ints(27)▅☢PublicclasssTest2{Publicstaticvoidmain(StringQargs){Threadt=newTest2Q;t.srartQ)PublicvoidrunQ(System.out.println("Howareyou");}}ᙠḄ@ᜐᐭḄDE⌱⚗H()஺A.implementsThreadB.extendsRunnableC.implcmcntsRunnableD.cxtendsThread(28)▅☢PublicclassTestimplementsRunnable{Publicstaticvoidmain(String[|args){t.start();}Publicvoidrun஺{System.out.println("Hell஺!”);}}ᙠḄ@ᜐᐭḄDE⌱⚗H()஺A.Tcstt=ncwTcstQ;B.Threadt=nc\vTTircadQ;CThreadt=nc\vThread(newTcstQ);D.Tcstt=ncwThread0(29)ᑡᐵsAppletRḄYS┯ḄH()஺A.\]ᵨAppletggetlmage()XYkWB.ᕒpqoḄgXYC.ᵫuImagegkWᩭ⊤D.\]ᵨGraphicsgdrawlmage()XY(31)RandomAcccssFilcHjava.ioᒹRḄu£ᨵBᐭB¤¥¦ḄgSᵫs§H¨ᓽª«Sᡠ]ᦻ®ᑏu°±Ḅ²³H()஺A.´µB.¶·C.¸¹D.no(32)▅☢AppletImportjavax.swing.*;Importjava.a\vt.*;PublicclassSwingAppletextendsJApplet{JLabell=newJLabel("ThisisaSwingApplet.");PublicvoidinitQ{)}ᙠḄ@ᜐᐭḄDE⌱⚗H()஺A.ContainercontentPane=getContentPane0;contentPane.add0);B.JPanelcontcntPanc=nc\vJPancl();contcntPiinc.add(l);C.contcntPanc.add(l);

40D.add(l);(33)ᙠjava»¼RS½±¾¿ÀH()஺A.ᦻ®B.ÁC.ᦪÂD.PQ(34)▅ᑡÃÄᚮ᪘ÇÈÉᑴḄËᑖPublicclassDateStack{Privateintidx=O;Privateint[]dataÎnewint[8]'Publicvoidpush(inti){_____________________________)Data[idx]=I;Idx++;})ᙠ@ᜐᐭDE⌱⚗H()஺A.synchronizedB.synchronized(this)C.synchronizedQD.synchronized(idx)(35)ᑡᐵskWjᓄḄYS┯ḄH()oAJava»¼RSÒÓᡠᨵgkWÔ\jᓄB.ᙠkWjᓄÕSÖ×ØkWᡠÙg᪀⌼XYC.ᙠÃÄSerializablePQḄgRSᵨtransientᐵÚh\ÛÜᦪÂÖ¾jᓄD.ObjcctlnputStrcamÝObjcctOutputStrcamgÔÞßkWḄÝᑏÎஹá⚪(ãá2ᑖSᐳ20ᑖ)åæãuáḄDEçᫀᑏᙠç⚪ᓱூ6௃[15]ìḄí@îSçᙠïᔁîÖᑖ஺ñ¹ò]óôᐵÚháḄpqõᑏö᦮஺(6)ᢥ᯿Java»¼RḄóôúoSXYûḄ´µhüý⌕rᑏSÿூ6௃᜜஺(7)swingḄᢥ[7](8)JavaḄ!"#ூ8௃(9)Java%ᐭ/%()ᒹ+,⁚)ஹூ9௃ஹᦻ0)ஹ12)34⍝)஺(10)ᙠJava912):[10];<〈>?@஺(11)ABC☢EF⊡ᐙI᦮PublicclassPowerCalc{Publicstaticvoidmain(Stringargs|]){Doublex=5.0;Systcm.out.println(x+ntothepower4is"+powcr(x,4));System.out.println("7.5tothepower5is"+power(7.5,5));System.()ut.println("7.5tnthepower0is"+power(7.5,0));Syscem.our.println("1.0tothepower-2is"+power(10,-2));}Staticdouble[11](doublexjntn){If(n>l)Returnx*po\vcr(x,n-l);Elseif(n<0)Return1.0/power(x,-n);ElseReturnn==0?1.0:x;)}(12)ABC☢ḄAppletEF⊡ᐙI᦮°Importjava.awt*wImportjava.applet.*;PublicclassHi[12]{Publicvoidpaint(Graphicsg){g.dra\vstring("Hi"2525);

41)(13)swingḄ{0||}ᵨMVC᪀9MACᢣḄModelஹView>ூ13௃஺(14)Java9:ᡈᐸḄ>ᑴEw(15)᝞EᵨH()9BEᐭḨ᝱஺ஹ⌱⚪ᫀ(11)B(13)A(14)D(15)A(16)C(17)D18)A19)A(20)A(21)B(22)D(23)D(24)B(25)C(26)B(27)D(28)C(29)B(31)C(32)A33)A(34)B(35)D£ஹ¤¥⚪ᫀ(6)᪀⌼(7)JBuuton(8)?:(9),#)(10)Fᑡᓄ(11)powcr(l2)extendsAppclct(l3)Controllcr(l4)Runtimc(l5)slccp8.82008©9ᨴ«¬Java®®⚪3ᫀஹ⌱⚪(¯°⚪2ᑖ9ᐳ50ᑖ)Cᑡᔜ⚪AஹBஹCஹDஹ£⌱⚗9µᨵ⌱⚗·¸Ḅ9AB·¸⌱⚗¹ᑏᙠ⚪ᓱ¼½Ḅ¾¿À9ᙠ®ᔁÀÂÃᑖ஺(11)Cᑡ1JavaḄÄÅ9┯ÇḄ()A.JavaÈÉÊËÌ᡻Î,⁚ṹB.JDKḄÑᦻ0ÒbinCJavaḄ1ᐹᨵ¼ÔÎÕÖ2Ḅ×Ø2DJavaḄᚗÚÛᦈÊᑴÝÞḄE(12)CᑡJavaßEF᪀à×áḄâF9·¸Ḅ()A.import,package,publicclassBimportäÕ✌9ᐸæÂ▲Cpublicclass,import,packageDpackagejmport,publicclass(13)▅éC☢EFPublicclassShiyan{Publicstaticvoidmain(StringargsQ){Doubled=___;Decrementerdec=newDecrementerOwdec.decrement(d);}}ClassDecrementer{Publicvoiddecrement(doubledecMe){dccMe=decMe-1.0;})ᙠíᜐ¤ᐭ·¸⌱⚗0A12.3B11.3Cl3.3D-1.0(14)ïshortðñòóôḄö()A-128÷+127B-2147483648÷+2147483647C-32768÷+32767D-1000÷+1000(15)ReaderᡠᜐᳮḄ()A,#)B,⁚)Cᦻ0)D4⍝)(16)▅éC☢EFByteArrajyOutpurStreambout=newByteArrayOutpurSrreamOwObjecrOutpurStreamout=newObject£)uq?utStream(bout);OutwriteObject(this);Out.closeQ;:ÀüṹýÃþᵨ()஺A.B12ᑏᐭᑁB.ᑏᐭC.ᑏᐭᐝD.ᑏᐭᦻ(17)ᑡswing᪀Ḅ()஺AJMenuBJAppletCJoptionPaneD.Panel(18)ᑡA*/Ḅ012ᳮᘤḄ()஺A.FlowLayoutB.BorderLayoutC.BoxLayoutD.GridLayout

42<19>?@ABC᱄@ḄEFGH᝱Jᙠ?@\]^_`Ḅabc<>஺A.Kᣚ᱄@ḄEFB.MN᱄@ḄEFC.MN᱄@ḄOPD.deEF<20>ᑡS⊤UVWXYZḄ()oA.sl.length஺B.sl.lengthC.sl.sizeD.sl.sizeQ<21>▅h☢jkAbstractclassPerson{PublicPerson(Stringn){Namc=n;Public.StringgetDecriprionOwPublicStringgetName(){Returnname;PrivateStringname;ᙠz{ᜐ}~ᐭḄ⛲W<>஺A.staticB.abstractC.protectedD.final(22)▅h☢jkPublicclassJixiangwu{Publicstaticvoidmain(Stringargs[|){Stringstars={“"J“ᨔᨔ”J"”}Systcm.out.println("ḄᝍᔡἝᱥ"+n+stars[(int)(stan*Math.random஺)]++"!");jkS᡻`Jjk\z{ᜐ}ᑏḄ<>஺A.longB.widthC.wide0.length<23>ᑡEF\]ᵨ{j¡Ḅ<>஺A.statQB.initOC.runQD.mainQ<24>ᑡ£EF\¤Applet¥U¦ᐵḄ<>஺A.updateOB.drawC.repaint஺D.paintO(25)ᑡ©F\┯«Ḅ()஺A.Strings[]={"how":are"};B.byteb=255;C.Strings=one+two;D.inti=2+2000;(26)ᑡ]ᵨ®swith(expression)°ᦪḄ()஺A.StringsB.IntegerIC.stopQD.destroyQ(28)▅h☢jkPublicclassTest{Publicstaticmain(Stringargs|]){System.out.prindn((2<0)?l0:8);ᐸ`Ḅ¶·<>஺A.2B.0C.101).8(29)▅h☢jkPublicclassArray{Publicstaticvoidmain(Stringargsf]){Int[]a=ncwint[5];For(inri=O^

43For(inti=Ou

44ᐸ()஺A.argsB.OneWorldOneDreamC.sD.2┯3ஹ56⚪(862ᑖ;ᐳ20ᑖ)>86Ḅ?@ᫀᑏᙠ@⚪ᓱூ6௃[15]LM஺(6)JavaPQRḄSTᦪVWXY[6L(7)[7]XRḄ\ᱯ^_`;abcdeᓄghᑏḄ_`஺(8)ᦻkXFileூ8௃ᒹRḄo⌕ḄqrX஺(9)tuJavaPvDouble[J[]balances=ne\vdouble[NYEARSHNRATES];ᦪbalancesூ9௃ᦪ(10)b3ᑴᦪḄ[10](11)MouscMotionListcncrRḄ_`ᒹூ11௃(12)ᙠcb⚓☢RḄᵨJavaR[12]XḄX஺(13)swingRḄᑁ᪾X[131(14)ᑡ£ṹᒹ¥Htmlᦻk¦AppletX°ᙠHeHo.htmlᦻkḄª«ᜐ5ᐭ®ᑁ¯;°HellcApplet±ᐭᙠhello.htmlR஺Hello.htmlᦻk<(itle><./APPLET>HelloAppletjavaᦻkᑁ¯:Importjava.awt.*;Importjava.applet.*;PubicclassHelloAppletextendsApplet{Publicvoidpaint(Graphicsg){g.drawstring("Hello!”25,25);(15)«2Ḅ᡻r;ᵫCPU£ṹgh[15]ᡠÆᡂḄÈ.⌱Ê⚪@ᫀ(H)B(12)D,packageÌha᦮JavaᦻkḄPv;ÎÏÐὃᦟᩞḄ5ÔRḄᔜÖ×XḄØÙ஺(13)A,Ú(_`)ÛᦪÜÝḄ2᎛;ßÜÝ;àÜáâ(ᙢᙬ)஺(14)C(15)A(16)A(17)D(18)C(19)D(20)A(21)B,åcXRÎÏᨵåc_`;åc_`ßçèàé;åc_`ᵫᐸXᩭé஺(22)D.ëìᦪíîḄ2᎛lengthM☢àïL“(23)C(24)B(25)B,Stringsñòóᦪ;sòó;ôõḄöÝ_`?Ḅ஺ØÙ⊤øùbyteb=255;úḄ2᎛ûüý┯(þᜫ)஺(26)D,switchḄᦪ᦮(int)ᡈ(char).(27)A(28)D(29)C,%&'ᨬ)*+Ḅ,-.“Mike”.(30)A(31)B(32)B(33)A,,9:;<ᵨsynchronizedB⛲)DE,9F&<ᵨG9:;HDᐸJF&K<ᵨG9:;LMNDOᑮF&A<ᵨQ%:;஺(34)D,STRunnableYḄZ[:;-\publicabstractvoidrun஺;,`ᨵᦪ,ᡠc+def┯hi`ᨵ⌚kSTRunnableYḄ:;run஺.(35)D,mStrings="OneWorldOneDrcam”;uvwB⛲xstatic)&'yz{|ef}~D*+OneWorldOneDream..⚪ᫀযFloat᪀⌼(:;)ᦪ(8)java.i()(9)(10)>>(1l)mouseMovedmouseDraged(12)java.applet.Applet(13)JFrame(14)HelloApplet.class(15)ᦪ

45Java⚪9.1⚪,ஹ⌱⚪(⚪2ᑖDᐳ50ᑖ)ᑡᔜ⚪AஹBஹCஹD9⌱⚗YD¢ᨵ,9⌱⚗.{£ḄD¤¥{£⌱⚗¦ᑏᙠ⚪ᓱḄª«¬wDᙠᔁw¯°ᑖ஺(11)ᙠJava2Ḅ±9᱐³YD´cµ¶·☢«ᵨ&'ஹ¹ºḄ»¼ᘤ«ᵨ¾JavaApplet&'Ḅ.()஺A.J2SEB.J2EEC.J2MED.JSP(12)¿ᑡÁÂYD{£Ḅ.()஺AÃÄbyteÅÆDᑁÈᑖÉÊ19⁚BlongÅÆDᑁÈᑖÉÊ89⁚CJava<ᵨUnicodeÌD1.23f⊤Î1.23Ïc10ḄÐ:(13)¿ᑡÑÄᔠ;ḄJava᪗Ô.()஺A.c_at55booksB.s+C.sta/ticD.-3.14159(14)ᙠJavaYD⊤Îᣚ~ḄÖ\.()0A.

46B.\fC'n'D.\dd(15)ᙠJavail-YDSystem×ØMath×ᡠᙠḄᒹ.()஺A.java.appletB.java.langC.java.utilD.java.awt(16)ᙠJavaYDᡠᨵÚÛ×Ḅ᪷×.()஺A.java.lang.ObjectB.java.lang.classC.java.applct.ComponcntD.java.awt.Framc(17)ᙠJavaYDᐵÄᒹḄÞ;{£Ḅ.()஺A.ᵨPackageÞß,9ᒹHD%ᒹḄàáâ᪀ØᦻÛḄ×äåB.`ᨵ<ᵨPackageḄ×æçèᑮawtᒹYC.å,9ᒹYḄ×´cäéêëÃ:ḄᡂᕒD.JavaYᨵ,9java.awt.ewentᒹ(18)ᙠîᦻÛEmployee.datHD<ᵨ%ᦻÛïᦪḄ×.()஺A.BuffcrRcadcrB.DatalnputStrcamC.DataOutoutStreamD.FileInputStream(19)¿ᑡ᪀⌼:;ḄÁÂYD{£Ḅ.()oA.,9×Ḅ᪀⌼:;¢ᨵ,9B.᪀⌼:;¯´cðñC.᪀⌼:;òØ×òäåD.᪀⌼:;´c`ᨵᦪDóᨵôõö(20)×FrameæçḄ÷øùᳮᘤ.()஺A.GridLayoutB.BorderLayoutC.FlowLayoutD.CardLayout(21)ᙠJavaYDyûdüðýþᦔḄ()஺A.ᙠᑁB.C.D.(22)ᑡ᡻Ḅ()஺A.forB.whilcC.brcakD.import(23)Java!Ḅ()஺A./**•#஻B./*•••*/C.//D./**•••*/(24)☢Ḅ&ᫀ()*+⊤-#.ᓝ01ᑴᦪ410Ḅ()஺A.0X10B.0x16C.OxAD.16(25)5☢67publicclassIfTest(publicstaticvoidmain(stringQargs){intx=3;inty=l;if(x=y)system.our.println("Notequal");elsesystcm.out.println("Equal');

47)☢*+Ḅ()A.6789:;"Equal”B.6789:;“Notequal1'C.>?┯AD.67B*C8DEFᨵ:;H(26)Iᵨ“vv”M“>>”OP8Q9ḄH*+Ḅ()஺A.00000100000000000000000000000000<<5Rᑮ10000000000000000000000000000000B.00000100000000000000000000000000<<5Rᑮ11111000000000000000000000000000C.1100000000000000000000000(X)00000>>5Rᑮ11111110000000000000000000000000D.11000000000000000000000000000000>>5Rᑮ00000110000000000000000000000000(27)ᑡT()ᵨᩭVW#.XY6Ḅ()஺A.Z[java.lang.Runnable\]ᑏstart()TB.Z[java.lang.Runnable\]ᑏrun()TC._`java.lang.Thread\]ᑏrun()TD_`javaaang.Thread\]ᑏstart()T(28)ᑡᐵcJavaApplicationdAppletḄeTD*+Ḅ()஺A.fᒹhmain()TB.fijapplctvicwcrkl᡻C.fijjavackl>?D.fmᐭᙠHTMLᦻp᡻(29)8Applet67qDᨬ9sᵨḄT()஺A.stop()B.init()C.start()D.destroy()(30)ᑡᐵcY6tᐜvḄeTD*+Ḅ()oA.Y6ḄtᐜvᦋxḄB.Y6ḄtᐜvᙠVWY6qyzḄC.ᙠVWY69Ḅ{|q᎛f()yzD.Y6Ḅtᐜvᨵ~(31)᝞IᵨThreadt=newTest()VW#.Y6Dᑣᑡ*+Ḅ()஺A.Test#⌕Z[RunnableB.Test#ThreadḄC.Test#^RunnableḄD.Test#_`Thread\Z[Runnable(32)P67ᐭḄmain()TḄ()஺A.intB.voidC.booleanD.static(33)☢6789RᑮḄH()஺1.publicclassSwitchTest{2.publicstaticvoidmain(String[]args{3.Systcm.ouLPrintln("value=switchIt(4));4.}5.publicstaticintswichlt(intx){6.intj=17.switch(x){8.case1:j++;9.casc2:j++;lO.case3:j++;11.case4:j++;12.case5:j++;13.default:j++14.}15.rctumj+x;16.}

4817.)A.Value=3B.Value=4C.Value=7D.Value=8(34)ᑡ67Ḅᙠ◞#[Z#.4“Hello”DBᑏᙠ67〉ḄzD67᦮\*+8Ḅ()publicclassTestimplementsRunnable{publicstaticvoidmain(Stringargs[]){TestnewTest();ThreadttnewThread(t);tt.start();}publicvoidrun(){for(;;){try{}catch(e){}System.put.println("Hello");A.sleep(lOOO)InterrupredHxceptionB.sleep(1000)InterruptedExceptionC.Thread.sleep(l000)RuntimeExceptionD.Thread.sleep(lOOO)InterruptedExccption(35)▅5ᑡ¡ṹpublicclassPerson(intarr[]=newint[10];arr[l]=9;publicstaticvoidmain(Steringargs[]){Systcm.out.println(arr[l]);}}*+ḄeT()A.>?q£¤¥┯AB.>?q*+D8q£¤¥┯AC.:;¦D.:;§§⚪©£#.§Ḅ*+&ᫀᑏᙠ&⚪ᓱ6157«9஺(6)☢ᔣ®Ḅ£¯°±²f³ᡂᵫᔜ®·ᡂDᐳᱯºMḄ®·ᡂD®_ூ6௃—ḄZ¿ᓄ஺(7)JavaÁᦻpᨬÂÃᨵ#.publicDᐸÅḄ.Æ[7](8)ᙠJavaᡠZ[ḄÈᦪ·DZ▭ᵫÂ.#ூ8௃_᪀ᡂḄD.#Èᦪ·Ḅᔜ.ᐗÌfÍ஺(9)StringBuffcrÎÏḄ#ூ9௃_TᵨᩭᑨÑ.4ᔲÍÓḄ஺(10)☢67D_ூ10௃#TÔÕᑮHTMLᦻpÖ×(name)“x”ḄØᦪḄÙ஺importjava.applet.Applet;importjava.awt.Graphics;publicclassA3extendsAppletIntx,y,r;

49publicvoidinit0x=lntcgcr.parsclnt(gctPramctcrf*xM));y=lnteger.parselnt(getPrameter(,,yH));r=Integer.parselnt(getPrameter(nrH));)publicvoidpaint(Graphicsg)|forinti=l;i<=10^++)g.drawOval(x+i*30,y,r,r);})HTMLᦻvPARAMname=rvalue=60>(11)78ᙠ:;<=⌕?ᔊ5AB᝱DᑖFGHIB᝱ஹKLMB᝱ஹ_[11]_B᝱ஹQRB᝱STUB᝱஺(12)FileInputStreamG[⁚]^BufferedWriterG[⁚]^QbjectOutputStream^_[12]_0(13)ᓽImageghGAppleti=jkḄghDmḄnopiqG_[13]_(14)rᑡ8tuṹLMwᙠxyz{ᑴ}~[141_᪗஺importjava.awt.*;classqipanlextendsFrame|Lableb[]=newI>able[10J;qipanl0(FlowLayoutf=newFlowlayoutQ;sctl>ayout(f);for(inti=0;i<10p++)(b[inewLable஺"+i+”)add(b[i]);)setBounds(l00,100,220,160);sctVisiblc(truc);}publicstaticvoidmain(Stringargs[|)((newqipanlO).showQ;(15)JavaᐭsynchronizedᐵDsynchronizedᐵ⛲Ḅgh~_[15]_78ᵨ஺9.2z¡¢£⚪¥ஹ¦§¨©⚪r☢8tG«;¬xy☢®ᐭᙊ°±Dᯠw³ᳫᙊ☢µ¶ᕜ¸஺¹ᑜ7»ᑖ¼z½D¾8t⊡ᐙÁ᦮஺importjava.io.*;

50publicclassQiumianji(publicstaticvoidmain(Stringargs[])(inta=0;doubleb,c;Stings;try{BuffcrcdRcadcrbr=ncwBuffcrcdRcadcr(newInputStreamReader(____[1]_))^s=br.readLine஺^a=_12]_;)catch(IOExcepione){)b=3.14*a*a;c=2*3.14*a;System.out.println(wÄᙊ☢µÅ"+b+""+"ᕜ¸Å"+c);}}ÆஹÇÈÉᵨ⚪r☢8tLMwDKÊᵨzrËÌÍÎ஺⊡ᐙrÏ7»ᑖḄuṹ஺importjava.awt*;importjava.awtcvcnt*;publicclassE6extendsFrameimplementskeyListener{TextFieldb1;intx,y;E60{setLayout(newFlowLayoutO);bl=newTextFieldCÒ")^_Ó_b.addkeyListener(this);setSize(200,120);addWindowListcncr(ncwWindowListcncrQ{publicvoidwindo\vCl()sing(V('indowEvente){System.exit(0);}))^}publicvoidkeyPresscd(KeyEventc){x=b1.getBouds().x;y—b1.getBouds().y;if(e.getKe)CodeO==_(2]_)(y=y-3;if(y<=l)y=50;bl.setLocati()n(x,y)^}if(e.getkeyCodeO==keyEven.VK_DOWN){y=y+3;if(\'>=100)y=50;

51bl.setLocation(x,y)^if(c.gctkcyCodcQ==kcyEvcnt.VK_LEFT){x=x-3;if(xீ=1)x=50;if(e.gctkcyCodc()==kcyEvcnt.VK_RIGHDI)(x=x+3;if(x>=100)x=50;bl.setl.ocation(x,y);}}publicvoidkcyTypcd(KeyEventc)()publicvoidkeyReleased(KeyEvente){)publicstaticvoidmain(Stringargs|])(E6a=newE6Q;ÜஹÝᔠÉᵨ⚪r☢8tGᑭᵨᔜAáᒹã⌱åᢥçèᑴ©☢DKÊᙠ☢z¼ᑏêë}ìíîDᯠw¡¢jïðñ஺ᓫójïᢥçwDðñḄíîôᑏᙠ~ᦻ§õ=Döᙠ⌕á÷øèùᶇûᩭḄ8tuṹá⌕ýþÏ7»ᑖÿᦋḄḄᑏᙠḄᦻᦻ஺importjava.awt.*;importjava.awt.event.*;publicclassGui21extendsFrame6Checkboxch[]=newCheckbox[10];Choicec,d;Buttonbl=ne\vButton6"BC"DButtonbl=ne\vButton6"EF"DTextFieldtl,t2,t3,t4,t5,t6;TcxtArcat=ncwTcxtArca0Dliablepl,p2,p3,p4,p5,p9,pl0,pl1;Gui21Q{set!,ayout6newFlowLayoutQ;pl=newLabel6"S⌱UᡠᙠWX”Dadd6pl;c=nc\vChoiccQ;c.addltem6"ZW";c.addltem6"[\W';c.addltem6"ᵞ_`W”Dc.addltem6"abcW";c.addltem6"deWc.addltemCfW"Dadd6c;p2=newlabel஺ᡠᙠgWhiCjkl”Dadd6p2;tl=nc\vtcxtFicld6lO;add6tlD

52p3=newLabel(”BoḄpqᨵl**);add(p3);ch[l]=newCheckbox,tu")Dch[2]=newCheckbox^w")Dch[3]=newCheckbox஺xᐹ'*);ch[4]=newCheckbox஺ᨨ{")Dch[5]=newCheckbox,᯼{")Dch[6]=newCheckboxf,ᵯ")Dch[7]=newCheckbox'ch[8]=newCheckbox^”)Dch[9]=newCheckbox⊟')Dfor(inti=l^<10p++)add(ch[i]);p4=newLabel("ul')Dadd(p4);d=ncwChoiccQ;d.addltemf*-H);d.addItem(H-,l);d.addltem(,,-x.,,)jd.addltemf',,);d.addltem(,rjL'^d.addltemf*")Dadd(d);p5=new141(“”)Dadd(p5);p8=newLabel("u☢l**);add(p8);t2=neurTextField(lO);add(t2);p9=newLabel(ὶ:add(p9);t3=newTextField(lO);add(t3);plO=newLabelὶᵯl")Dadd(plO);t4=newTextField(lO);add(t4);pll=newLabel,ᶇl”)Dadd(pl1);t5=ncwTcxtFicld(lO);add(t5);add(bl);add(b2);publicbooleanaction(Evente,Objecto)if(c.targetinstanccofButton)if(o.toStringO.equals("BC"))setBackground(Color.cyan);Strings=,H,;s¢"u£¤¥"+c.gctSclcctcdItcmO+""+p2.gctTcxt()+tl.getTextO+p3.getText();fbr(inti=lp<10^4-+)if(ch[i].getSrate()==true)s=s+ch[i].getl-bel0+"”;t.append(s);removeAll஺;add(t):

53elseSystern.cxit(O);validateQ;}return(true);)publicstaticvoidmain(Stringargs[|){Gui21k=newGui21();k.setSize(350,300);k.showQ;9.3¦§⚪©ᫀஹ⌱U⚪©ᫀ(11)A(12)D(13)A(14)A(15)B(16)C(17)D(18)D(19)C(20)B(21)C(22)C(23)A24)C(25)C(26)A(27)C(28)C(29)D(30)C(31)B(32)B(33)D(34)D35)A¢ஹ¬⚪©ᫀ[6]®ூ7௃±▲ூ8௃³ᦪµூ9௃publicbooleancquals(Strings)[10]getParameter[11]¶ூ12௃·¸¹ᡈ·¸»ᐭ¹ூ13௃Image[14]10115]-½ஹ¾¿À⚪©ᫀ[1]System.in[2]Integer.parselnt(s)ஹÁ©Âᵨ⚪©ᫀ[1]add(bl)[2]KeyEvent.VK_UP[3]bl.setLocation(x,y)[4]a.showOÄஹÅᔠÂᵨ⚪©ᫀBÇlÈÉᦻ·¸ᵨᦻ»ᐭ¹(·¸)ᢣᔣᦻ·¸Ìᵨ»Í¹·¸¿ÎÏÐÑs஺Ò᝞ÔÕÖ®×Ø☢ḄÙÚᐭÛÜ஺try{FileWriterw=ne\vFileWriterfᦻÝ”,true);w.write(s);w.closcQ;}catch(Exceptione)()

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。
关闭