⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 认证与培训 - 希望对大家有帮助(280道考题回忆).mht

📁 所属行业的java的简单介绍上述事实上述事实上v
💻 MHT
📖 第 1 页 / 共 5 页
字号:
            <A=20
            =
href=3D"http://www.javaren.com/bbs/cgi-bin/report.cgi?forum=3D26&amp;topi=
c=3D5386"><IMG=20
            height=3D15 =
alt=3D=B1=BE=CC=F9=D3=D0=CE=CA=CC=E2=A3=AC=B7=A2=CB=CD=B6=CC=CF=FB=CF=A2=B1=
=A8=B8=E6=B8=F8=B0=E6=D6=F7=20
            src=3D"http://www.javaren.com/bbs//images/report.gif" =
width=3D16=20
            border=3D0></A>&nbsp; <A=20
            =
href=3D"http://www.javaren.com/bbs/cgi-bin/fav.cgi?action=3Dadd&amp;forum=
=3D26&amp;topic=3D5386"><IMG=20
            height=3D15 =
alt=3D=BC=D3=C8=EB=B8=F6=C8=CB=CA=D5=B2=D8&amp;=B9=D8=D7=A2=B1=BE=CC=F9=20
            src=3D"http://www.javaren.com/bbs//images/fav.gif" =
width=3D13=20
            border=3D0></A>&nbsp; <A=20
            =
href=3D"http://www.javaren.com/bbs/cgi-bin/printpage.cgi?forum=3D26&amp;t=
opic=3D5386"><IMG=20
            alt=3D=CF=D4=CA=BE=BF=C9=B4=F2=D3=A1=B5=C4=B0=E6=B1=BE =
src=3D"http://www.javaren.com/bbs//images/printpage.gif"=20
            width=3D16 border=3D0></A>&nbsp; <A=20
            =
href=3D"http://www.javaren.com/bbs/cgi-bin/topic.cgi?forum=3D26&amp;topic=
=3D5386&amp;show=3D25#"><SPAN=20
            style=3D"CURSOR: hand"=20
            =
onclick=3D"window.external.AddFavorite('http://www.javaren.com/bbs/cgi-bi=
n/topic.cgi?forum=3D26&amp;topic=3D5386', ' =
JavaUnion.org=D6=D0=CE=C4=C2=DB=CC=B3 - =
=CF=A3=CD=FB=B6=D4=B4=F3=BC=D2=D3=D0=B0=EF=D6=FA(280=B5=C0=BF=BC=CC=E2=BB=
=D8=D2=E4)')"><IMG=20
            height=3D15 =
alt=3D=B0=D1=B1=BE=CC=F9=BC=D3=C8=EBIE=CA=D5=B2=D8=BC=D0=20
            src=3D"http://www.javaren.com/bbs//images/fav_add1.gif" =
width=3D15=20
            =
border=3D0></SPAN></A>&nbsp;&nbsp;</TD></TR></TBODY></TABLE></TD>
    <TD width=3D1 bgColor=3D#f0f4f0 =
height=3D24></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"97%" align=3Dcenter =
bgColor=3D#f0f4f0>
  <TBODY>
  <TR>
    <TD height=3D1></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"97%" align=3Dcenter>
  <TBODY>
  <TR>
    <TD width=3D1 bgColor=3D#f0f4f0 height=3D24></TD>
    <TD bgColor=3D#f0f4f0>
      <TABLE cellSpacing=3D5 cellPadding=3D4 width=3D"100%" =
bgColor=3D#f0f4f0>
        <TBODY>
        <TR>
          <TD vAlign=3Dtop width=3D184 bgColor=3D#f0f4f0 rowSpan=3D2>
            <TABLE cellSpacing=3D0 cellPadding=3D0>
              <TBODY>
              <TR>
                <TD width=3D30><IMG =
alt=3D=B8=C3=D3=C3=BB=A7=C4=BF=C7=B0=B2=BB=D4=DA=CF=DF=20
                  =
src=3D"http://www.javaren.com/bbs//images/offline1.gif"=20
                width=3D15></TD>
                <TD>
                  <TABLE=20
                    style=3D"FILTER: =
glow(color=3D#9898BA,direction=3D135)">&nbsp;<FONT=20
                    color=3D#000066><B>iLee&nbsp;</B></FONT>
                    <TBODY></TBODY></TABLE></TD>
                <TD>=A1=A1 </TD></TR></TBODY></TABLE><FONT =
color=3D#555555>=A1=A1=A1=A1=20
            </FONT><BR><FONT color=3D#333333></FONT><BR><IMG=20
            src=3D"http://www.javaren.com/bbs//images/pips1.gif" =
width=3D100>=20
            <BR><FONT color=3D#555555>=CD=FE=CD=FB: 0</FONT> <BR><FONT =
color=3D#333333>=BC=B6=B1=F0: <A=20
            =
href=3D"http://www.javaren.com/bbs/cgi-bin/lookinfo.cgi?action=3Dstyle"=20
            target=3D_blank>=CF=C0=BF=CD</A></FONT> <BR><FONT =
color=3D#555555>=F7=C8=C1=A6: <IMG=20
            height=3D8 alt=3D559 =
src=3D"http://www.javaren.com/bbs//images/bar4.gif"=20
            width=3D7></FONT> <BR><FONT color=3D#333333>=BE=AD=D1=E9: =
<IMG height=3D8 alt=3D454=20
            src=3D"http://www.javaren.com/bbs//images/bar5.gif" =
width=3D3></FONT>=20
            <BR><FONT color=3D#555555>=B2=C6=B2=FA: 1915 jollar</FONT> =
<BR><FONT=20
            color=3D#333333>=C0=B4=D7=D4: =B1=A3=C3=DC=A1=A1<IMG =
height=3D14 alt=3D""=20
            src=3D"http://www.javaren.com/bbs//flags/blank.gif"=20
            align=3DabsMiddle></FONT> <BR><FONT =
color=3D#333333>=D7=DC=B7=A2=CC=F9=CA=FD: <B>48</B>=20
            =C6=AA</FONT> <BR><FONT =
color=3D#555555>=D7=A2=B2=E1=C8=D5=C6=DA: 2002/08/16</FONT><BR></TD>
          <TD width=3D1 bgColor=3D#f0f4f0 height=3D"100%" rowSpan=3D2>
            <TABLE height=3D"100%" cellSpacing=3D0 cellPadding=3D0 =
width=3D1=20
            bgColor=3D#276b98>
              <TBODY>
              <TR>
                <TD width=3D1></TD></TR></TBODY></TABLE></TD>
          <TD vAlign=3Dtop width=3D* bgColor=3D#f0f4f0 =
height=3D"100%"><A=20
            title=3D=B7=A2=CB=CD=D2=BB=B8=F6=B6=CC=CF=FB=CF=A2=B8=F8iLee =

            =
href=3D"javascript:openScript('messanger.cgi?action=3Dnew&amp;touser=3Dil=
ee',420,320)"><IMG=20
            src=3D"http://www.javaren.com/bbs//images/message.gif" =
width=3D16=20
            align=3DabsMiddle border=3D0>=CF=FB=CF=A2</A>=A1=A1<A =
title=3D=B2=E9=BF=B4iLee=B5=C4=B8=F6=C8=CB=D7=CA=C1=CF=20
            =
href=3D"http://www.javaren.com/bbs/cgi-bin/profile.cgi?action=3Dshow&amp;=
member=3Dilee"><IMG=20
            src=3D"http://www.javaren.com/bbs//images/profile.gif" =
width=3D16=20
            align=3DabsMiddle border=3D0>=B2=E9=BF=B4</A>=A1=A1<A =
title=3D=CB=D1=CB=F7iLee=D4=DA=B1=BE=B7=D6=C2=DB=CC=B3=B5=C4=C8=AB=B2=BF=CC=
=F9=D7=D3=20
            =
href=3D"http://www.javaren.com/bbs/cgi-bin/search.cgi?action=3Dstartsearc=
h&amp;TYPE_OF_SEARCH=3Dusername_search&amp;NAME_SEARCH=3Dtopictitle_searc=
h&amp;FORUMS_TO_SEARCH=3D26&amp;SEARCH_STRING=3Dilee"=20
            target=3D_blank><IMG =
src=3D"http://www.javaren.com/bbs//images/find.gif"=20
            width=3D16 align=3DabsMiddle =
border=3D0>=CB=D1=CB=F7</A>=A1=A1<A =
title=3D=BC=D3iLee=CE=AA=CE=D2=B5=C4=BA=C3=D3=D1=20
            =
href=3D"javascript:openScript('friendlist.cgi?action=3Dadduser&amp;adduse=
r=3Dilee',420,320)"><IMG=20
            src=3D"http://www.javaren.com/bbs//images/friend.gif" =
width=3D16=20
            align=3DabsMiddle border=3D0>=BA=C3=D3=D1</A>=A1=A1<A =
title=3D=B5=E7=D7=D3=D3=CA=BC=FE=B5=D8=D6=B7=20
            href=3D"mailto:sowork@263.net"><IMG=20
            src=3D"http://www.javaren.com/bbs//images/email.gif" =
width=3D16=20
            align=3DabsMiddle border=3D0>=D3=CA=BC=FE</A>=A1=A1<A =
title=3D=B8=B4=D6=C6=D5=E2=B8=F6=CC=F9=D7=D3=20
            =
href=3D"http://www.javaren.com/bbs/cgi-bin/post.cgi?action=3Dcopy1&amp;fo=
rum=3D26&amp;topic=3D5386&amp;postno=3D1"><IMG=20
            src=3D"http://www.javaren.com/bbs//images/copy.gif" =
width=3D16=20
            align=3DabsMiddle border=3D0>=B8=B4=D6=C6</A>=A1=A1<A =
title=3D=D2=FD=D3=C3=BB=D8=B8=B4=D5=E2=B8=F6=CC=F9=D7=D3=20
            =
href=3D"http://www.javaren.com/bbs/cgi-bin/post.cgi?action=3Dreplyquote&a=
mp;forum=3D26&amp;topic=3D5386&amp;postno=3D1"><IMG=20
            src=3D"http://www.javaren.com/bbs//images/reply.gif" =
width=3D16=20
            align=3DabsMiddle border=3D0>=D2=FD=D3=C3</A>=A1=A1<A=20
            =
href=3D"http://www.javaren.com/bbs/cgi-bin/post.cgi?action=3Dreply&amp;fo=
rum=3D26&amp;topic=3D5386"><IMG=20
            alt=3D=BB=D8=B8=B4=CC=F9=D7=D3 =
src=3D"http://www.javaren.com/bbs//images/replynow.gif"=20
            width=3D16 border=3D0>=BB=D8=B8=B4</A>=A1=A1<BR>
            <HR width=3D"100%" color=3D#f0f4f0 SIZE=3D1>

            <TABLE style=3D"TABLE-LAYOUT: fixed" cellSpacing=3D0 =
cellPadding=3D0=20
            width=3D"100%">
              <TBODY>
              <TR>
                <TD vAlign=3Dtop width=3D32><IMG height=3D13=20
                  src=3D"http://www.javaren.com/bbs//posticons/18.gif"=20
                width=3D13>&nbsp;</TD>
                <TD=20
style=3D"LEFT: 0px; WIDTH: 100%; WORD-WRAP: break-word; 130: ">
                  <TABLE style=3D"TABLE-LAYOUT: fixed" height=3D120 =
cellSpacing=3D0=20
                  cellPadding=3D0 width=3D"100%">
                    <TBODY>
                    <TR vAlign=3Dtop>
                      <TD=20
                      style=3D"LEFT: 0px; WIDTH: 100%; WORD-WRAP: =
break-word; 130: "><FONT=20
                        =
color=3D#555555>=BF=BC=CC=E2=BB=D8=D2=E4<BR>Sreejith<BR>310-025
                        <P>1.public static void main(String args[]) =
{<BR>Boolean=20
                        a[]=3Dnew Boolean[4];<BR>int I=3D=20
                        1;<BR>System.out.println(a[I]); }<BR>What will =
be=20
                        printed?<BR>Compilation Error in Line =
2<BR>Compilation=20
                        Error in line 4<BR>Exception in Line 4<BR>Will =
print=20
                        true<BR>Will print false<BR>Will print null
                        <P>Ans:F<BR>2.<BR>public static void main(String =
args[])=20
                        {<BR>Integer b=3D new=20
                        =
Integer(10);<BR>Add(b);<BR>System.out.println(b.intvalue());<BR>}<BR>void=
=20
                        Add(Integer b)<BR>{<BR>int I=3D=20
                        b.intvalue();<BR>I+=3D3;<BR>b=3D new =
Integer(I)<BR>}
                        <P>What will be printed out?
                        <P>Will print 13<BR>Will print 10<BR>Compilation =
Error=20
                        in Line 4 ?. implicit conversion to Integer =
to<BR>String=20
                        is not possible<BR>Compilation Error in line 10 =
you=20
                        can't re initialize a =
Wrapper<BR>class<BR>Exception in=20
                        Line 10<BR>Ans:b
                        <P>class text{<BR>public static void main(String =

                        args[])<BR>{<BR>String a =3Dargs[1];<BR>String b =

                        =3Dargs[2];<BR>String c =
=3Dargs[3];<BR>}<BR>}<BR>if you will=20
                        execute java text cat dog sheep what will be the =
value=20
                        of<BR>the 'c' =
?<BR>cat<BR>dog<BR>sheep<BR>Compilation=20
                        Error<BR>Exception will occur<BR>Ans:E
                        <P>4. public static void main(String=20
                        args[])<BR>{<BR>Float f=3Dnew =
Float(4.2f);<BR>Float=20
                        c;<BR>Double d=3Dnew Double(4.2);<BR>float=20
                        fl=3D4.2f;<BR>c=3Df;<BR>}<BR>which will return =
true?. Select=20
                        =
all<BR>f.equls(d)<BR>c=3D=3Df<BR>c=3D=3Dd<BR>c.equls(f)
                        <P>Ans:B,D
                        <P>5. public static void main(String=20
                        args[])<BR>{<BR>String =
s;<BR>System.out.println("s =3D=20
                        "+s);<BR>}<BR>what will be printed =
out?<BR>Compilation=20
                        Error<BR>An Exception will occur<BR>Will print =
s=3D=20
                        null<BR>Will print s=3D
                        <P>Ans:A<BR>6. class s extends Thread{int =
j=3D0;<BR>public=20
                        void run()=20
                        {<BR>try{Thread.sleep(5000);}<BR>catch(Exception =
e){}
                        <P>j=3D100;<BR>}<BR>public static void =
main(String=20
                        args[])<BR>{<BR>s t1=3Dnew=20
                        =
s();<BR>t1.start();<BR>System.out.println(t1.j);<BR>}<BR>}
                        <P>what you have to do to ensure that 'j' will =
print 100
                        <P>you have make t1 as Daemon Thread<BR>You have =
join=20
                        the t1 to main<BR>You have to suspend the main =
when the=20
                        thread starts and resume it after<BR>the value =
of 'j' is=20
                        set to 100<BR>You have to interrupt the main =
thread
                        <P>Ans:B<BR>7. What will happen if you =
compile/run this=20
                        code?
                        <P>1: public class Q1 implements Runnable<BR>2: =
{<BR>3:=20
                        public void run(String s)<BR>4: {<BR>5:=20
                        System.out.println("Before start Thread=20
                        :"+s);<BR>6:<BR>7: System.out.println("After =
stop of=20
                        Thread :"+s);<BR>8: }<BR>9:<BR>10: public static =
void=20
                        main(String[] args)<BR>11: {<BR>12: Q1 a =3D new =

                        Q1();<BR>13: Thread t=3Dnew Thread(a);<BR>14:=20
                        t.start();}<BR>15: }
                        <P>A) Compilation error at line 1<BR>B) Runtime=20
                        exception at line 13.<BR>C) Compilation error at =
line=20
                        14<BR>D) Prints "Before start of Thread =
"<BR>After Start=20
                        of Thread
                        <P>Ans:A<BR>8. class s implements =
Runnable{<BR>int=20
                        x=3D0,y=3D0;<BR>int addX(){x++; return =
x;}<BR>int=20
                        addY(){y++; return y;}
                        <P>public void run()<BR>{<BR>for(int=20
                        =
i=3D0;i&lt;10;i++)<BR>System.out.println(addX()+""+addY());<BR>}
                        <P>public static void main(String =
args[])<BR>{<BR>s=20
                        run=3Dnew s();<BR>Thread t1=3Dnew =
Thread(run);<BR>Thread=20

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -