正在加载图片...
36.在Java语言中,(检查/非检查) 型异常继承自RuntimeException类的 异常。 37.读出器类(Reader)和写人器类(Writer)是java.io包中所有(字符/字节) 流 的抽象基类。 38.Swing提供的三个顶层容器的类,分别是JFrame、JDialog和 39.Java Applet是一种嵌人 文件的Java程序。 40.进行数据库应用的程序设计需要使用 包中提供的各种类。 得 分 评卷人 四、写出下列每个程序编译和运行后的输出结果(每小题10分,共 50分) 41.public class XXK public static void main(String[]args)( int x,y=0; for(x=1;x<5;x++)y+=x*x; System.out.println("y="+y); 42.public class XXK2 private int a; public XXK2()(a=3;) public XXK2(int aa)(a=aa;} public double fl(){ return 2 Math.pow(a,3)+a; } public static void main(String[]args){ XXK2 x=new XXK2(),y=new XXK2(5); System.out.println(x.f1()+","+y.f1()); } 157836. 在Java (检查/非检查〉 型异常继承自 untimeException 异常。 37. 类(Reader) 类(Writer) 是jam-io 字 符 的抽象基类。 38. Swing 顶层 是JFrame.JDialog 39. Java Applet 一种嵌 的Java 程序 40. 行数据库应 得分|评卷人 四、写出下列每个程序编译和运行后的输出结果{每小题0分,共 50 41. public class XXK { public static void main(String[] args) { intx, y=O; for(x=l; x<5; x++) 十=x 铸x; System. out. print1n(" y=" 十y); 42. public class XXK2 { prIvate mt a; public XXK20 {a=3;} public XXK2 (int aa) {a=aa;} public double f1 0 { return 禄Math. pow(a,3) 十a; public static void main(String[] args) { XXK2 x=new XXK20 , y=new XXK2(5); System. out. println(x. f1 0 +", "+y. f1 0); 1578
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有