java测试笔试题1

乙醇 创建于 almost 7 years 之前

最后更新: about 1 month 之前

阅读数: 1

java测试笔试题1

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?

静态方法不可以调用非静态方法

0

相关课程