Oracle
1Z0-815 · Question #96
Given: What is the result?
The correct answer is A. A ClassCastException is thrown at runtime. See the full explanation below for the reasoning.
Question
Given:
What is the result?
Exhibit
Options
- AA ClassCastException is thrown at runtime.
- BAnotherClass#methodA()
- CThe compilation fails.
- DSomeClass#methodA()
- EAnotherClass#methodA()
- FSomeClass#methodA()
How the community answered
(32 responses)- A78% (25)
- B3% (1)
- D3% (1)
- E6% (2)
- F9% (3)
Community Discussion
No community discussion yet for this question.
