更多JAVA程序设计试题
- 1下面选项中,哪个是短路与运算符()
- 2数据库中,顺序查询是以下哪项
- 3JDBC中,用于表示数据库连接的对象是?
- 4类中的一个成员方法被下面哪个修饰符修饰,该方法只能在本类被访问?
- 5final修饰符修饰方法时,不能和以下哪个修饰符共用?
- 6下列程序运行结果是( )interface InterfaceA{String s="good ";void f();}abstract class ClassA{abstract void g();}class ClassB extends ClassA implements InterfaceA{void g(){System.out.print(s);}public void f(){System.out.print(" "+s);}}public class E {public static void main(String[] args) {ClassA a=new ClassB();InterfaceA b=new ClassB();a.g();b.f();}}