更多java基础知识试题
- 1下述代码的执行结果是class Super { public int getLength() { return 4; }}public class Sub extends Super { public long getLength() { return 5; } public static void main (String[]args) { Super sooper = new Super (); Super sub = new Sub(); System.out.printIn(sooper.getLength()+ “,” + sub.getLength() ); }}
- 2关键字( )表明一个对象或变量在初始化后不能修改
- 3以下哪个约束符可用于定义成员常量?
- 4接口Statement中定义的execute方法的返回类型所代表的含义是:( )
- 5linux命令中,切换当前目录命令是?( )