nerdexam
Oracle

1Z0-804 · Question #12

Given: Which two statements are true about the writer class?

The correct answer is A. It compiles without any changes. An abstract class does not need to implement the interface methods.

Advanced Class Design

Question

Given:

Which two statements are true about the writer class?

Exhibit

1Z0-804 question #12 exhibit

Options

  • AIt compiles without any changes.
  • BIt compiles if the code void write (String s); is added at line***.
  • CIt compiles if the code void write (); is added at line ***.
  • DIt compiles if the code void write (string s) { } is added at line ***.
  • EIt compiles if the code write () {}is added at line ***.

How the community answered

(49 responses)
  • A
    71% (35)
  • B
    2% (1)
  • C
    6% (3)
  • D
    16% (8)
  • E
    4% (2)

Explanation

An abstract class does not need to implement the interface methods.

Topics

#abstract class#interface methods#method signatures#compilation

Community Discussion

No community discussion yet for this question.

Full 1Z0-804 Practice