Java Classes 2

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

abstract

A class becomes abstract when you place the ________ key word in the class definition.

a chain of inheritance

If ClassC is derived from ClassB which is derived from ClassA, this would be an example of ________.

the method will only have a header, but not a body, and will end with a semicolon

If a class contains an abstract method ________.

The method header must begin with the key word default.

What is required for an interface method that has a body?

final

When a method is declared with the ________ modifier, it cannot be overridden in a subclass.

instanceOf

Which of the following is the operator used to determine whether an object is an instance of a particular class?

public class ClassA implements Interface1, Interface2

Which of the following statements correctly specifies two interfaces?

ClassB

ClassB

are treated as final and static

All fields declared in an interface ________.

ClassC

ClassC


Ensembles d'études connexes

Tale of Two Cities Quotes Context

View Set