java测试笔试题1
乙醇 创建于 over 7 years 之前
最后更新: less than a minute 之前
阅读数: 212
final关键字可以修饰类吗?
can keyword final be assigned to a class? yes
可以
Java可以继承多父类么?可以实现多接口么?
Can a java class inheritance from multiple classes? how about a java class implement multiple interfaces?
不可以多继承,但是可以多实现
构造方法是否可以重写和重载?
Can a constructor be overrided? how about oveload?
不可以重写,可以重载
Exception类的父类是?
what is the Exception class inhertanced from?
Throwable
同一个类中,静态方法如何直接调用非静态方法?
Could a static method call a non-static method in the same class?
静态方法不可以调用非静态方法