Review Questions

6.12 Which statements are true about interfaces?

Select the two correct answers.

  1. Interfaces allow multiple implementation inheritance.

  2. Interfaces can be extended by any number of other interfaces.

  3. Interfaces can extend any number of other interfaces.

  4. Members of an interface are never static.

  5. Members of an interface can always be declared static.

6.13 Which of these field declarations are legal within the body of an interface?

Select the three correct answers.

  1. public static int answer = 42;

  2. int answer;

  3. final static int answer = 42;

  4. public int answer = 42;

  5. private final static int answer = 42;

6.14 Which statements are true about interfaces? ...

Get Programmer's Guide to Java™ Certification, A: A Comprehensive Primer, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.