GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

Java Exam 2 Prep

Eric Brletic 56 Fragen

Quiz starten

Fragen in diesem Quiz (56)

  1. 1An abstract class may contain instance fields, but an interface can't have any instance fields (variables).
    1. ARichtig
    2. BFalsch
  2. 2An abstract class needs to have at-least one abstract method.
    1. ARichtig
    2. BFalsch
  3. 3An abstract method cannot be placed in a non-abstract class.
    1. ARichtig
    2. BFalsch
  4. 4An abstract class cannot be instantiated, but any class extending an abstract class can be instantiated.
    1. ARichtig
    2. BFalsch
  5. 5A class extending an abstract class needs to implement every abstract method in the abstract class. However, overriding non-abstract methods of the abstract class is optional.
    1. ARichtig
    2. BFalsch
  6. 6Although an abstract class cannot be instantiated, but it can have constructors.
    1. ARichtig
    2. BFalsch
  7. 7An interface in Java can have both method declarations and method implementations.
    1. ARichtig
    2. BFalsch
  8. 8A Java class can implement multiple interfaces.
    1. ARichtig
    2. BFalsch
  9. 9In Java, can an interface have variables (fields)?
    1. ANo, interfaces can only have methods
    2. BYes, but the variables must be static and final
    3. CYes, interfaces can have instance variables
    4. DYes, but variables in an interface are automatically initialized
  10. 10In Java, a class can extend both another class and implement one or more interfaces.
    1. ARichtig
    2. BFalsch

Informationen

Beschreibung
Computer Science Quiz am Java Exam 2 Prep, erstellt von Eric Brletic am 02/11/2023.
Sprache
English
Aufrufe
15
Schlagwörter
computer science
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck