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

题目

Which two are reserved words in the Java programming language?()  

  • A、 run
  • B、 import
  • C、 default
  • D、 implement

相似考题
更多“Which two are reserved words in the Java programming language?()  A、 runB、 importC、 defaultD、 implement”相关问题
  • 第1题:

    Whichthe twoarereservedwordsinJava?()

    A.run

    B.import

    C.default

    D.implement


    参考答案:B, C

  • 第2题:

    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.


    参考答案:A, C

  • 第3题:

    Grammar is a description of the()of a language and the way in which linguistic units such as words and phrases are combined to produce sentences in the language.
    structure

  • 第4题:

    Which interface does java.util.Hashable implement?()  

    • A、 Java.util.Map.
    • B、 Java.util.List.
    • C、 Java.util.Hashable.
    • D、 Java.util.Collection.

    正确答案:A

  • 第5题:

    Which the two are reserved words in Java?()

    • A、 run
    • B、 import
    • C、 default
    • D、 implement

    正确答案:B,C

  • 第6题:

    Given in a single JSP page: <%@ taglib prefix=’java’ uri=’myTags’ %> <%@ taglib prefix=’JAVA’ uri=’moreTags’ %>  Which two are true?()

    • A、The prefix ’java’ is reserved.
    • B、The URI ’myTags’ must be properly mapped to a TLD file by the web container.
    • C、A translation error occurs because the prefix is considered identical by the web container.
    • D、For the tag usage , the tag1 must be unique in the union of tag names in ’myTags’ and’moreTags’.

    正确答案:A,B

  • 第7题:

    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.

    正确答案:A,C

  • 第8题:

    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 serialization
    • B、 it provides a more efficient serialization of the object
    • C、 it allows the object to be shared across applications
    • D、 it allows the object to be shared across programming platforms

    正确答案:B,D

  • 第9题:

    多选题
    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 serialization

    B

    it provides a more efficient serialization of the object

    C

    it allows the object to be shared across applications

    D

    it allows the object to be shared across programming platforms


    正确答案: A,C
    解析: 暂无解析

  • 第10题:

    填空题
    Grammar is a description of the()of a language and the way in which linguistic units such as words and phrases are combined to produce sentences in the language.

    正确答案: structure
    解析: 暂无解析

  • 第11题:

    单选题
    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.


    正确答案: A
    解析: 暂无解析

  • 第12题:

    多选题
    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.


    正确答案: A,C
    解析: 在java中一个类只能有一个直接父类,但是可以实现多个接口,在继承的同时可以实现接口,之所以取消多继承的原因是多继承使得代码产生很多问题,而使用单一继承则可以使代码更可靠。

  • 第13题:

    WhichtwostatementsarereservedwordsinJava?()

    A.Run

    B.Import

    C.Default

    D.Implement


    参考答案:B, C

  • 第14题:

    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.giving

    B.given

    C.gave

    D.gives


    正确答案:C

  • 第15题:

    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.

    正确答案:A

  • 第16题:

    Which two statements are reserved words in Java? ()

    • A、 Run
    • B、 Import
    • C、 Default
    • D、 Implement

    正确答案:B,C

  • 第17题:

    Which interface does java.util.Hashtable implement?()  

    • A、 java.util.Map
    • B、 java.util.List
    • C、 java.util.Hashable
    • D、 java.util.Collection

    正确答案:A

  • 第18题:

    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.

    正确答案:A,D

  • 第19题:

    Which two can be used to create a new Thread?()   

    • A、 Extend java.lang.Thread and override the run method.
    • B、 Extend java.lang.Runnable and override the start method.
    • C、 Implement java.lang.thread and implement the run method.
    • D、 Implement java.lang.Runnable and implement the run method.
    • E、 Implement java.lang.Thread and implement the start method.

    正确答案:A,D

  • 第20题:

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

    run

    B

    import

    C

    default

    D

    implement


    正确答案: D,C
    解析: 暂无解析

  • 第21题:

    多选题
    Which two can be used to create a new Thread?()
    A

    Extend java.lang.Thread and override the run method.

    B

    Extend java.lang.Runnable and override the start method.

    C

    Implement java.lang.thread and implement the run method.

    D

    Implement java.lang.Runnable and implement the run method.

    E

    Implement java.lang.Thread and implement the start method.


    正确答案: D,B
    解析: 暂无解析

  • 第22题:

    多选题
    Which the two are reserved words in Java?()
    A

    run

    B

    import

    C

    default

    D

    implement


    正确答案: C,A
    解析: 暂无解析

  • 第23题:

    多选题
    Which two statements are reserved words in Java?()
    A

    Run

    B

    Import

    C

    Default

    D

    Implement


    正确答案: A,B
    解析: 暂无解析