1、大学《Java语言程序设计》复习题一、判断题(每小题1分,共5分)1、()Java的各种数据类型占用固定长度,与具体的软硬件平台环境无关。2、()用“+”可以实现字符串的拼接,用“-”可以从一个字符串中去除一个字符子串。3、()A class can implement as many interfaces as needed.4、()A subclass inherits all methods ( including the constructor ) from the superclass.5、()
7、...}③a(intx){...}④voida(intx){...}19、对抽象类的描述错误的是①必须被继承使用②方法必须被重写③不能实例化④用final修饰符修饰20、类是所有异常类的父类。①Throwable②Error③Exception④AWTError21、向容器添加新构件的方法是①add()②insert()③hill()④set()22、下面函数是public void example(intk){...}的重载函数。①public void example( int m){...}②pub
8、lic int example(intk){...}③public void example2(intk){...}④public int example( int m, float f){...}23、给出下面的代码段:public class Base{int w, x, y ,z;public Base(int a,int b){x=a; y=b;}public Base(int a, int b, int c, int