问答题请描述一下JAVA中抽象类与接口的异同点。 

您可能感兴趣的试卷

你可能感兴趣的试题

4.多项选择题下面哪段语法执行正确()

A. String s = "Gone with the wind";String t = " good ";String k = s + t;
B. String s = "Gone with the wind";String t; t = s[3] + "one";
C. String s = "Gone with the wind";String standard = s.toUpperCase();
D. String s = "home directory";String t = s - "directory";

5.多项选择题关于JAVA中数据类型描述正确的是()

A.double型是基本数据类型
B.Double型是基本数据类型
C.double型是引用数据类型
D.Double型是引用数据类型

9.多项选择题关于JAVA赋值,下面哪些值的说明是正确的() 

A. ’\n’是表示char类型的换行字符;
B. 010是表示8进制的int类型值;
C. 1.0f表示float类型的值;
D. 20L是表示int类型的值;

10.单项选择题以下是JAVA中正确的入口方法是? () 

A. public static void main(String[] args){}
B. public static void main(String args){}
C. public void main(String[] args){}
D. public static int main(String[] args){}

最新试题

在Hibernate 中关于缓存正确的说法有()    

题型:多项选择题

Hibernate 的关联维护中,最重要的是()    

题型:多项选择题

给定如下Java程序片断: class A{ public A (){  System.out.println("A");  } } class B extends A{  public B(){ System.out.println("B"); } public static void main(String[] args){   B b=new B();  } } 上述程序将()。 

题型:单项选择题

Hibernate 中的查询参数类型有()    

题型:多项选择题

Struts中标记的属性描述正确的是() 

题型:多项选择题

在Java中,下列代码将输出()。 1.    public class integerequals 2.    { 3.       public static void main (String args[]) 4. { 5.  Integer a= new Integer(3); 6.  Integer b= new Integer(3); 7.   System.out.println(a==b); 8. } 9.    } 

题型:单项选择题

Hibernate 中的查询语句如下 from User u where u.name=:username and u.yearold=:yearold 正确的参数注入方式有() 

题型:多项选择题

Hibernate关联维护中关于“一对一”描述正确的是()    

题型:多项选择题

看下面关于switch的语句 switch(exp1 ) { } 表达式exp1可以是()类型

题型:多项选择题

Collection 和 Collections正确的说法有()     

题型:多项选择题