《大学期末考试Java题库.pdf》由会员分享,可在线阅读,更多相关《大学期末考试Java题库.pdf(22页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、1.下面程序的运行结果是()。public class E3 public static void main(String args)String s=大大;char a=s.charAt(2),b=s.charAt(4);System.out.print(a);System.out.println(b);2.下面程序的运行结果是()。import java.util.*;public class LinkedListExample public static void main(String args)LinkedList linkedlist=new LinkedList();linked
2、list.add(new Integer(1);linkedlist.add(new Integer(2);linkedlist.add(new Integer(3);linkedlist.add(new Integer(4);linkedlist.add(new Integer(5);System.out.println(The original contents of the linkedlist is:);System.out.println(linkedlist);linkedlist.add(2,hello);linkedlist.addFirst(First);linkedlist
3、.addLast(Last);System.out.println(After adding elements,the linkedlist is:);System.out.println(linkedlist);答:3.下面程序的运行结果是()。public class TestArray public static void main(String args)int i,j;int a=5,9,6,8,7;for(i=0;i a.length-1;i+)int k=i;for(j=i;j a.length;j+)if(aj ak)k=j;int temp=ai;ai=ak;ak=temp;
4、for(i=0;i a.length;i+)System.out.print(ai+);System.out.println();4.下面程序的运行结果是()。public class TryCatchFinally static void Proc(int sel)try if(sel=0)System.out.println(no Exception);return;else if(sel=1)int i=0;int j=4/i;catch(ArithmeticException e)System.out.println(Catch);catch(Exception e)System.ou
5、t.println(Will not be executed);finally System.out.println(finally);public static void main(String args)Proc(0);Proc(1);5.下面程序的运行结果是()。public class welcomeTest public static void main(String args)String s,s1=;char c;s=wELCOME;for(int i=0;i=a&c=z)s1=s1+Character.toUpperCase(c);else s1=s1+Character.to
6、LowerCase(c);文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9
7、文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N
8、8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6
9、W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10
10、A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X
11、6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6
12、G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9 System.out.println(s1);6.下面程序的运行结果是()。public class arrTest public static void main(String args)int i,j;int a=2,1,4,8;f
13、or(i=0;i a.length-1;i+)int k=i;for(j=i;j a.length;j+)if(aj ak)k=j;int temp=ai;ai=ak;ak=temp;for(i=0;i a.length;i+)System.out.print(ai+);System.out.println();7.下面程序的运行结果是(true,false)。public class StringTest public static void main(String args)String s1=new String(abcde);String s2=new String(abcde);bo
14、olean b1=s1.equals(s2);boolean b2=s1=s2;System.out.print(b1+,+b2);8.下面程序运行时,若输入10,则输出结果是()。public class test public static void main(String args)throws IOException BufferedReader buf=new BufferedReader(new InputStreamReader(System.in);while(true)String str=buf.readLine();if(str.equals(quit)break;文档编
15、码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1
16、 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3
17、ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文
18、档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8
19、J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W
20、3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A
21、9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9int x=Integer.parseInt(str);System.out.println(x*x);System.out.println(“OK”);9.下面程序的运行结果是()。public class T public static void main(Stri
22、ng args)Set set=new HashSet();set.add(new Integer(10);set.add(new Integer(5);set.add(new Integer(15);set.add(new Integer(5);set.add(new Integer(10);System.out.println(size=+set.size();Iterator it=set.iterator();while(it.hasNext()System.out.print(it.next()+);10.下面程序的运行结果是()。public class A class Dog p
23、rivate String name;private int age;public int step;Dog(String s,int a)name=s;age=a;step=0;public void run(Dog fast)fast.step+;public static void main(String args)A a=new A();Dog dog=a.new Dog(Tom,3);dog.step=25;dog.run(dog);System.out.println(dog.step);文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:C
24、K9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX
25、8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8
26、O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码
27、:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1
28、HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 Z
29、Q8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档
30、编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9 11.下面程序的运行结果是()。class A int x=1,y=2;double add()return x+y;class B extends A int x=10,y=20;double add()return super.x+super.y;class Takecare public static void main(String args)A
31、 a=new A();B b=new B();System.out.println(a.add=+a.add();System.out.println(b.add=+b.add();12.下面程序的运行结果是()。for(int i=0;i 5;i+)switch(i)default:System.out.print(defaultt);case 0:System.out.print(zerot);i+;break;case 1:System.out.print(onet);case 2:System.out.print(twot);i+;13.下面程序的运行结果是()。public clas
32、s Example String str=new String(good);char ch=a,b,c;public void change(String str,char ch)str=test ok;ch0=g;文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3
33、 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9
34、文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N
35、8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6
36、W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10
37、A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X
38、6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9public static void main(
39、String args)Example example=new Example();example.change(example.str,example.ch);System.out.print(example.str+and);System.out.print(example.ch);14.下面程序的运行结果是()。class A public String Show(D obj)return(A and D);public String Show(A obj)return(A and A);class B extends A public String Show(B obj)return(
40、B and B);public String Show(A obj)return(B and A);class C extends B public String Show(C obj)return(C and C);public String Show(B obj)return(C and B);class D extends B public String Show(D obj)return(D and D);public String Show(B obj)return(D and B);public class main public static void main(String a
41、rgs)A a1=new A();A a2=new B();B b=new B();C c=new C();D d=new D();System.out.println(a1.Show(b);System.out.println(a1.Show(c);System.out.println(a1.Show(d);System.out.println(a2.Show(b);System.out.println(a2.Show(c);System.out.println(a2.Show(d);System.out.println(b.Show(b);System.out.println(b.Show
42、(c);System.out.println(b.Show(d);15.下面程序的运行结果是()。public class Example extends TT 文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8
43、J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W
44、3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A
45、9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6
46、N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G
47、6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B1
48、0A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9文档编码:CK9G5X6N8J1 HX8A4Q6G6W3 ZQ8O1Z5B10A9public static void main(String args)Example t=new E
49、xample(Tom);public Example(String s)super(s);System.out.println(How do you do?);public Example()this(I am Tom);class TT public TT()System.out.println(What a pleasure!);public TT(String s)this();System.out.println(I am +s);16.下面程序的运行结果是()。public class Example public static void main(String args)for(i
50、nt i=0;i 2;i+)resume:for(int j=0;j 3;j+)for(int k=0;k A)y=爱;z=情;else y=我;z=她;System.out.println(+x+y+z);19.下面程序的运行结果是()。class TT public TT()System.out.println(What a peasure!);public TT(String s)this();System.out.println(I am +s);public class Example extends TT public static void main(String args)Ex