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

Given:

What is the result?

A.

Joe

null

B.

null

Mary

C.

Joe

Marry

D.

null

null

Given the code fragment:

What is the result?

A.

A java.lang, UnsupportedOperationException is thrown.

B.

True

C.

False

D.

A java.lang.NullPointerException is thrown.

Which module-info.java is correct for a service provider for a print service defined in the PrintServiceAPI

module?

A.

module PrintServiceProvider {

requires PrintServiceAPI;

exports org.printservice.spi;

}

B.

module PrintServiceProvider {

requires PrintServiceAPI;

provides org.printservice.spi.Print with

com.provider.PrintService;

}

C.

module PrintServiceProvider {

requires PrintServiceAPI;

uses com.provider.PrintService;

}

D.

module PrintServiceProvider {

requires PrintServiceAPI;

exports org.printservice.spi.Print with

D18912E1457D5D1DDCBD40AB3BF70D5D

com.provider.PrintService;

}

Which statement about access modifiers is correct?

A.

An instance variable can be declared with the static modifier.

B.

A local variable can be declared with the final modifier.

C.

An abstract method can be declared with the private modifier.

D.

An inner class cannot be declared with the public modifier.

E.

An interface can be declared with the protected modifier.

Given:

Which is true?

A.

Line 2 Is the first line to cause a compilation error.

B.

Line 3 is the first line to cause a compilation error.

C.

It complies without errors.

D.

Line 1 is the first line to cause a compilation error,

Given the code fragment:

Which two code snippets inserted independently inside print method print Mondial: domainmodal?

A.

prefix + name

B.

prefix + getName

C.

new Main (} .prefix + new Main().name

D.

prefix + Main, name

E.

Main.prefix + Main.name

F.

Main.prefix + Main.getName()

Given:

Which statement on line 1 enables this code fragment to compile?

A.

Function function = String::toUpperCase;

B.

UnaryOperator function = s −> s.toUpperCase();

C.

UnaryOperator function = String::toUpperCase;

D.

Function function = m −> m.toUpperCase();

Given:

What is the result?

A.

[0,0] = Red[0,1] = White[1,0] = Black[1,1] = Blue[2,0] = Yellow[2,1] = Green[3,0] = Violet

B.

[0,0] = Red[1,0] = Black[2,0] = Blue

C.

java.lang.ArrayIndexOutOfBoundsException thrown

D.

[0,0] = Red[0,1] = White[1,0] = Black[2,0] = Blue[2,1] = Yellow[2,2] = Green[2,3] = Violet

Given the declaration:

Which two annotations may be applied at Loc1 in the code fragment? (Choose two.)

A.

@Resource({“Customer1”, “Customer2”})

B.

@Resource(value={{}})

C.

@Resource

D.

@Resource(“Customer1”)

E.

@Resource()

Given:

What is the result?

A.

nothing

B.

It fails to compile.

C.

0

D.

A java.lang.IllegalArgumentException is thrown.

E.

10