O'Reilly logo

Programmer's Guide to Java™ Certification, A: A Comprehensive Primer, Second Edition by Rolf W. Rasmussen, Khalid A. Mughal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Review Questions

6.1 Which statements are true?

Select the two correct answers.

  1. In Java the extends clause is used to specify inheritance.

  2. The subclass of a non-abstract class can be declared abstract.

  3. All the members of the superclass are inherited by the subclass.

  4. A final class can be abstract.

  5. A class in which all the members are declared private, cannot be declared public.

6.2 Which statements are true?

Select the two correct answers.

  1. Inheritance defines a has-a relationship between a superclass and its subclasses.

  2. Every Java object has a public method named equals.

  3. Every Java object has a public method named length.

  4. A class can extend any number of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required