更多java基础知识试题
- 1以下标识符中哪项是不合法的( )
- 2线程是Java程序的( )机制。
- 3下述代码的执行结果是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() ); }}
- 4以下哪个单词不是 Java 的关键字?
- 5下列类定义中,不正确的是