New Year Sale ! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-808 Topic 14 Question 78 Discussion

Actual exam question for Oracle's 1Z0-808 exam
Question #: 78
Topic #: 14
[All 1Z0-808 Questions]

Given the class definitions:

class C1 {}

class C2 extends C1 {}

class C3 extends C2 {}

and the code fragment:

16. C1 obj1 = (C1) new C2();

17. C2 obj2 = (C2) new C3();

18. C2 obj3 = (C2) new C1();

19. C3 obj4 = (C3) obj2;

Which line throws ClassCastException?

Show Suggested Answer Hide Answer
Suggested Answer: D


Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77