¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

Java Exam 2 Prep

Eric Brletic 56 preguntas

Hacer el test

Preguntas del test (56)

  1. 1An abstract class may contain instance fields, but an interface can't have any instance fields (variables).
    1. AVerdadero
    2. BFalso
  2. 2An abstract class needs to have at-least one abstract method.
    1. AVerdadero
    2. BFalso
  3. 3An abstract method cannot be placed in a non-abstract class.
    1. AVerdadero
    2. BFalso
  4. 4An abstract class cannot be instantiated, but any class extending an abstract class can be instantiated.
    1. AVerdadero
    2. BFalso
  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. AVerdadero
    2. BFalso
  6. 6Although an abstract class cannot be instantiated, but it can have constructors.
    1. AVerdadero
    2. BFalso
  7. 7An interface in Java can have both method declarations and method implementations.
    1. AVerdadero
    2. BFalso
  8. 8A Java class can implement multiple interfaces.
    1. AVerdadero
    2. BFalso
  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. AVerdadero
    2. BFalso

Información

Descripción
Computer Science Test sobre Java Exam 2 Prep, creado por Eric Brletic el 02/11/2023.
Idioma
English
Visitas
15
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?