nerdexam
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

1Z0-815 question #96 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)
  • A
    78% (25)
  • B
    3% (1)
  • D
    3% (1)
  • E
    6% (2)
  • F
    9% (3)

Community Discussion

No community discussion yet for this question.

Full 1Z0-815 Practice