Weekend Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sntaclus

Given:

and

Which two method definitions at line n1 in the Bar class compile? (Choose two.)

A.

public List foo(Set m) {...}

B.

public List foo(Set m) {...}

C.

public List foo(TreeSet m) {...}

D.

public List foo(Set m) {...}

E.

public ArrayList foo(Set m) {...}

F.

public ArrayList foo(Set m) {...}

Given:

What is the output?

A.

Short value 25

B.

The compilation fails due to an error in line 1.

C.

Byte value 25

D.

Object value 25

Given:

What is the output?

A)

B)

C)

D)

A.

option A

B.

option B

C.

option C

D.

option D

Given TripleThis.java:

Compiling TripleThis.java gives this compiler warning:

Note: TripleThis.java uses unchecked or unsafe operations.

Which two replacements done together remove this compiler warning?

A.

Replace line 9 with function tripler = x-> - { return (Integer) X * 3 ; }.

B.

Replace line 12 with public static void printValue function f, int num) {.

C.

Replace line 12 with public static int printValue function, f, T num {.

D.

Replace line 12 with public static void printValue (Function f, T num ) {,

E.

Replace line 9 with function, Integer> = X -> { return (integer) x * 3; }.

Examine this excerpt from the declaration of the java.se module:

What does the transitive modifier mean?

A.

Only a module that requires the java.se module is permitted to require the java.sql module.

B.

Any module that requires the java.se module does not need to require the java.sql module.

C.

Any module that attempts to require the java.se module actually requires the java.sql module instead.

D.

Any module that requires the java.sql module does not need to require the java.se module.

Given the code fragment:

What is the result?

A.

false true true

B.

true false false

C.

false false true

D.

false true false

Given:

What is the result?

A.

6910 3

B.

10126 3

C.

3

D.

6104 3

Given the code fragment:

What is the result?

A.

13 5 7 9

B.

1 3 5 7 9 11

C.

2 4 6 B 10

D.

2 4 6 8

Which two are successful examples of autoboxing? (Choose two.)

A.

String a = “A”;

B.

Integer e = 5;

C.

Float g = Float.valueOf(null);

D.

Double d = 4;

E.

Long c = 23L;

F.

Float f = 6.0;

Given:

and

checkQuality(QUALITY.A);

and

Which code fragment can be inserted into the switch statement to print Best?

A.

QUALITY.A.ValueOf()

B.

A

C.

A.toString()

D.

QUALITY.A