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
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)- A71% (35)
- B2% (1)
- C6% (3)
- D16% (8)
- E4% (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.
