O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

Java Exam 2 Prep

Eric Brletic 56 perguntas

Fazer o quiz

Perguntas do quiz (56)

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

Informações

Descrição
Computer Science Quiz sobre Java Exam 2 Prep, criado por Eric Brletic em 02-11-2023.
Idioma
English
Visualizações
15
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?