Summer Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exc65

Given:

Given the code fragment:

Which two sets of actions, independently, enable the code fragment to print Fit?

A.

At line n1 insert: import clothing.Shirt;At line n2 insert: String color = Shirt.getColor();

B.

At line n1 insert: import clothing;At line n2 insert: String color = Shirt.getColor();

C.

At line n1 insert: import static clothing.Shirt.getColor;At line n2 insert: String color = getColor();

D.

At line n1 no changes required.At line n2 insert: String color = Shirt.getColor();

E.

At line n1 insert: import Shirt;At line n2 insert: String color = Shirt.getColor();

Given the code fragment:

What is the result?

A.

A B C

B.

A B C D E

C.

A B D E

D.

Compilation fails.

Which is true about the switch statement?

A.

Its expression can evaluate to a collection of values.

B.

The break statement, at the end of each case block, is optional.

C.

Its case label literals can be changed at runtime.

D.

It must contain the default section.

Given the code fragment:

What is the result?

A.

[green, red, yellow, cyan]

B.

[green, blue, yellow, cyan]

C.

[green, red, cyan, yellow]

D.

An IndexOutOfBoundsException is thrown at runtime.

Given:

Which action fixes the compiler error?

A.

At line 17, add throws AccessViolationException

B.

At line 13, add throws LogFileException

C.

At line 2, replace throws LogFileException with throws AccessViolationException

D.

At line 7, insert throw new LogFileException ();

Given the code fragment:

What is the result?

A.

[JavaForum, ExpertForum]

B.

[JavaGroup, ExpertGroup]

C.

[JavaForumGroup, ExpertForumGroup]

D.

[JavaGroup, TechGroup ExpertGroup]

Given the code fragment:

Which code fragment, when inserted at line 3, enables the code to print 10:20?

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Given this code for the classes MyException and Test:

What is the result?

A.

A

B.

AB

C.

A compile time error occurs at line n1.

D.

B

E.

I

Given the code fragment:

What is the result?

A.

The sum of 4 numbers is: 10

B.

A compile time error occurs.

C.

The sum of 5 numbers is: 10

D.

The sum of 5 numbers is: 15

Given:

What is the result?

A.

10 Hello Hello 11

B.

10 Hello Hello 121

C.

100 Hello 121

D.

100 Hello Hello 121

E.

10 Hello 11