B.break¼´¿ÉÒÔ³öÏÖÔÚÑ»·Óï¾äÖÐÒ²¿ÉÒÔ³öÏÖÔÚswitchÓï¾äÖÐ C.continue¿ÉÒÔÓÃÓÚÌø³öÑ»· D.continue²»ÄܳöÏÖÔÚswitchÓï¾äÖÐ ÕýÈ·´ð°¸£ºC
break¡±Óï¾äÓÃÀ´½áÊøÑ»·£¬¼´²»ÔÙÖ´Ðкó±ßµÄËùÓÐÑ»·¡£
¡°continue¡±Óï¾äÓÃÀ´½áÊøµ±Ç°Ñ»·£¬²¢½øÈëÏÂÒ»´ÎÑ»·£¬¼´½ö½öÕâÒ»´ÎÑ»·½áÊøÁË£¬²»ÊÇËùÓÐÑ»·½áÊøÁË£¬ºó±ßµÄÑ»·ÒÀ¾É½øÐС£
34.
(µ¥Ñ¡)Çë¿´ÏÂÁдúÂë±àÒëºÍÔËÐеĽá¹ûÊÇ£º package packagea; public class Message {
String getText() { return \package packageb;
public class XMLMessage extends packagea.Message{ String getText() {
return \
public static void main(String[] args) {
System.out.println(new XMLMessage().getText()); } }Ö±½Ónew¶ÔÏóÁË A.text
B.
D.´úÂëpublic class XMLMessage extends packagea.Message{ÐУ¬±àÒë´íÎó ÕýÈ·´ð°¸£ºB
ÕâÌâÖÐXMLMessage¼Ì³ÐMessageÊÇÒ»¸ö»Ï×Ó£¬ÔÚprintln·½·¨ÖÐÎÒÃÇnew³öÀ´µÃÊÇXMLMessage¶ÔÏó£¬Ö±½Óµ÷ÓÃXMLMessageµÄgetText·½·¨
35.
(µ¥Ñ¡)³ÌÐòÖ´ÐеĽá¹ûÊÇ£¨£©¡£ public class Test { String name=\public Test(String name){
this.name=name; }//ûÓÐthis
public static void main(String [] args){ Test t = new Test(\
System.out.println(t.name); } }//Ö±½Ó·ÃÎʳÉÔ±±äÁ¿ A.null B.Tom C.Jack D.\ÕýÈ·´ð°¸£ºB 36.
(µ¥Ñ¡)Çë¿´ÏÂÁдúÂëµÄÊä³ö½á¹ûÊÇ£º public class Bootchy { int bootch;
String snootch;
public Bootchy() { ¹¹Ôì·½·¨µÄÖØÔØ this(\ µÚÒ»ÏȽøÀ´ÕâÀï System.out.print(\×îºóÊä³ö }
public Bootchy(String snootch) { this(420, \µÚ¶þ½øÕâÀï
System.out.print(\Æä´ÎÊä³ö }
public Bootchy(int bootch, String snootch) { this.bootch = bootch; µÚÈý½øÕâÀï this.snootch = snootch;
System.out.print(\Ê×ÏÈÊä³ö }
public static void main(String[] args) { Bootchy b = new Bootchy();
System.out.print(b.snootch + \ A.first second third snootchy 420 B.third second first snootchy 420 C.third first second snootchy 420
D.first second first third snootchy 420 ÕýÈ·´ð°¸£ºB
37.(µ¥Ñ¡)ÏÂÁдúÂëµÄÊä³ö½á¹ûÊÇ£º£¨£©¡£ public class StaticFoo { int num;
static int x;
public static void main(String[] args) { StaticFoo foo1 = new StaticFoo (); foo1.num++; foo1.x++;
StaticFoo foo2 = new StaticFoo (); foo2.num++; foo2.x++;
StaticFoo foo3 = new StaticFoo (); foo3.num++; foo3.x++; StaticFoo.x++;