Given the following classes and their objects:

```
class C1 {};
class C2 extends C1 {};
class C3 extends C1 {};

C2 c2 = new C2();
C3 c3 = new C3();
```
Analyze the following statement:
```
c2 = (C2)((C1)c3);```
a. c3 is cast into c2 successfully.
b. You will get a runtime error because you cannot cast objects from sibling classes.
c. You will get a runtime error because the Java runtime system cannot perform multiple casting in nested form.
d. The statement is correct.


b

Computer Science & Information Technology

You might also like to view...

Which interface is used to identify classes whose objects can be written to or read from some type of storage or transmitted across a network?

a. Comparable b. Runnable c. AutoCloseable d. Serializable

Computer Science & Information Technology

While working with style formatting for a Microsoft Word document,when you change the text or paragraph formatting of a single instance, such as by applying bold or changing the alignment, you are applying _____.?

A. ?ancillary formatting B. ?derivative formatting C. ?secondary formatting D. ?direct formatting

Computer Science & Information Technology

Match the following terms to their meanings:

I. Folder holds messages that you have not yet completed A. Shared folder II. Folder that can be accessed by more than one person B. Drafts folder III. Multiple lists of folders with varying message types C. newsgroup IV. Preview pane displays a single e-mail from this location D. Folders list V. Public meeting place for open discussion E. message list

Computer Science & Information Technology

Any time you're creating a website or a single web page with links to other websites, it's helpful to map out the ____ between pages.

A. security links B. title tags C. keyboard shortcuts D. relationships

Computer Science & Information Technology