Question: Suppose C is a class that implements the interfaces I and J, and i is declared as I i = new C(); Which of the
Suppose C is a class that implements the interfaces I and J, and i is declared as I i = new C();
Which of the following statements will throw an exception?
a. C c = (C) i;
b. J j = (J) i;
c. i = (I) null;
Step by Step Solution
3.45 Rating (155 Votes )
There are 3 Steps involved in it
Here i is the object of C of type I In the 3 options abc w... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
2106_61d6ac346753c_873119.pdf
180 KBs PDF File
2106_61d6ac346753c_873119.docx
120 KBs Word File
