网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
多选题
Which statements about inheritance are true?()
A

In Java programming language only allows single inheritance.

B

In Java programming language allows a class to implement only one interface.

C

In Java programming language a class cannot extend a class and implement a interface together.

D

In Java programming language single inheritance makes code more reliable.


参考答案

参考解析
解析: 在java中一个类只能有一个直接父类,但是可以实现多个接口,在继承的同时可以实现接口,之所以取消多继承的原因是多继承使得代码产生很多问题,而使用单一继承则可以使代码更可靠。
更多 “多选题Which statements about inheritance are true?()AIn Java programming language only allows single inheritance.BIn Java programming language allows a class to implement only one interface.CIn Java programming language a class cannot extend a class and implement a interface together.DIn Java programming language single inheritance makes code more reliable.” 相关考题
考题 ● (75) is not a programming language.(75) A.COBOLB.JavaC.UMLD.Basic

考题 阅读下列代码 public class Test 2005{ public static void main(String args[]){ Strings="Test"; switch(s){ case "Java":System.out.print("Java"); break; case "Language":System.out.print("Language"); break; case "Test":System.out.ptint("Test"); break; } } } 其运行结果是A.JavaB.LanguageC.TestD.编译出错

考题 Structured programming practices(71)rise to Pascal,in which constructs were introduced to make programs more readable and better(72). C provided a combination of assembly language and high-level Structure to create a general-purpose language that could be used from system to(73)programming. Next came object orientation,which is(74)of a methodology and design philosophy than a language issue.This is(75)by the addition of so-called OO extensions to current languages,such as C.A.givingB.givenC.gaveD.gives

考题 ( 19 )阅读下列代码public class Test2005{public static void main(String args[]){String s= ″ Test ″ ;Switch(s){case ″ Java ″ : System.out.print( ″ Java ″ ) ;break ;case ″ Language ″ : System.out.print( ″ Language ″ ) ;break ;case ″ Test ″ : System.out.print( ″ Test ″ ) ;break ;}}}其运行结果是A ) JavaB ) LanguageC ) TestD )编译出错

考题 is not a programming language.A.COBOLB.Java.C.UMLD.Basic

考题 The standard class(17) in C + + language contain many useful classes for input and output, string handling, mathematical computations, and system programming tasks.A.databaseB.filesC.librariesD.subroutine

考题 Given a class whose instances, when found in a collection of objects, are sorted by using the compareTo()method, which two statements are true?() A.The class implements java.lang.Comparable.B.The class implements java.util.Comparator.C.The interface used to implement sorting allows this class to define only one sort sequence.D.The interface used to implement sorting allows this class to define many different sort sequences.

考题 ______ is not a programming language.A.COBOLB.JavaC.UMLD.Basic

考题 Structured programming practices(71)rise to Pascal, in which constructs were introduced to make programs more readable and better(72)C provided a combination of assembly and high -level structure to create a general -purpose language that could be used from system to(73)programming. Next came object orientation, which is(74)of a metrology and design philosophy than a language issue. This is(75)by the addition of so - called OO extensions to current language, such as C++.A.givingB.givenC.gaveD.gives

考题 Which of the following statements about language is NOT true?A.Language is a system B.Language is symbol C.Animals also have language D.Language is arbitrary

考题 Which statement is true about assertion in the Java programming language?()  A、 Assertion expressions should not contain side effects.B、 Assertion expression values can be any primitive type.C、 Assertion should be used for enforcing preconditions on public methods.D、 An AssertionError thrown as a result of a failed assertion should always be handled by the enclosing method.

考题 POJO是()A、Plain Old Java ObjectB、Programming Object Java ObjectC、Page Old Java ObjectD、Plain Object Java Old

考题 //point X  public class foo { public static void main (String[]args) throws Exception {  java.io.printWriter out = new java.io.PrintWriter {  new java.io.outputStreamWriter (System.out), true;  out.printIn(“Hello”); }  }  }   Which statement at PointX on line 1 allows this code to compile and run?()  A、 Import java.io.*;B、 Include java.io.*;C、 Import java.io.PrintWriter;D、 Include java.io.PrintWriter;E、 No statement is needed.

考题 Which statements about inheritance are true?()         A、 In Java programming language only allows single inheritance.B、 In Java programming language allows a class to implement only one interface.C、 In Java programming language a class cannot extend a class and implement a interface together.D、 In Java programming language single inheritance makes code more reliable.

考题 Which two are reserved words in the Java programming language?()  A、 runB、 importC、 defaultD、 implement

考题 Given a class whose instances, when found in a collection of objects, are sorted by using the compareTo() method, which two statements are true?()A、The class implements java.lang.Comparable.B、The class implements java.util.Comparator.C、The interface used to implement sorting allows this class to define only one sort sequence.D、The interface used to implement sorting allows this class to define many different sort sequences.

考题 Which two statements are true about simple views?()A、Views can be created as read only.B、Views are data segments like tables.C、Views can be created on the basis of more than one table.D、Data manipulation language (DML) operations cannot be performed on views.

考题 Identify two correct statements to complete the sentance. In a Coherence implementation, it is a best practice to implement PortableObject on all customer objects because:()A、 it leverages Java’s built-in serializationB、 it provides a more efficient serialization of the objectC、 it allows the object to be shared across applicationsD、 it allows the object to be shared across programming platforms

考题 Which two statements are true about the hashCode method?()A、The hashCode method for a given class can be used to test for object equality and object inequality for that class.B、The hashCode method is used by the java.util.SortedSet collection class to order the elements within that set.C、The hashCode method for a given class can be used to test for object inequality, but NOT objecte quality, for that class.D、The only important characteristic of the values returned by a hashCode method is that the distribution of values must follow a Gaussian distribution.E、The hashCode method is used by the java.util.HashSet collection class to group the elements within that set into hash buckets for swift retrieval.

考题 Which statements concerning the event model of the AWT are true?()  A、At most one listener of each type can be registered with a component.B、Mouse motion listeners can be registered on a List instance.C、There exists a class named ContainerEvent in package java.awt.event.D、There exists a class named MouseMotionEvent in package java.awt.event.E、There exists a class named ActionAdapter in package java.awt.event.

考题 多选题Which two are reserved words in the Java programming language?()ArunBimportCdefaultDimplement

考题 多选题Identify two correct statements to complete the sentance. In a Coherence implementation, it is a best practice to implement PortableObject on all customer objects because:()Ait leverages Java’s built-in serializationBit provides a more efficient serialization of the objectCit allows the object to be shared across applicationsDit allows the object to be shared across programming platforms

考题 多选题Which statements concerning the event model of the AWT are true?()AAt most one listener of each type can be registered with a component.BMouse motion listeners can be registered on a List instance.CThere exists a class named ContainerEvent in package java.awt.event.DThere exists a class named MouseMotionEvent in package java.awt.event.EThere exists a class named ActionAdapter in package java.awt.event.

考题 单选题Which statement is true about assertion in the Java programming language?()A  Assertion expressions should not contain side effects.B  Assertion expression values can be any primitive type.C  Assertion should be used for enforcing preconditions on public methods.D  An AssertionError thrown as a result of a failed assertion should always be handled by the enclosing method.

考题 多选题Given a class whose instances, when found in a collection of objects, are sorted by using the compare To method, which two statements are true?()AThe class implements java.lang.Comparable.BThe class implements java.util.Comparator.CThe interface used to implement sorting allows this class to define only one sort sequence.DThe interface used to implement sorting allows this class to define many different sort sequences.

考题 多选题Which two statements are true about the hashCode method?()AThe hashCode method for a given class can be used to test for object equality and object inequality for that class.BThe hashCode method is used by the java.util.SortedSet collection class to order the elements within that set.CThe hashCode method for a given class can be used to test for object inequality, but NOT objecte quality, for that class.DThe only important characteristic of the values returned by a hashCode method is that the distribution of values must follow a Gaussian distribution.EThe hashCode method is used by the java.util.HashSet collection class to group the elements within that set into hash buckets for swift retrieval.

考题 多选题Which two statements are true about simple views?()AViews can be created as read only.BViews are data segments like tables.CViews can be created on the basis of more than one table.DData manipulation language (DML) operations cannot be performed on views.