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

Given:

What is the result?

A.

nothing

B.

0

C.

10

D.

0 4 9

Given:

Assume the file on path does not exist. What is the result?

A.

The compilation fails.

B.

/u01/work/filestore.txt is not deleted.

C.

Exception

D.

/u01/work/filestore.txt is deleted.

Given the code fragment:

What is the result?

A.

0 8 10

B.

0

C.

The code prints nothing.

D.

0 4 9

E.

0 8

Given:

What is the result?

A.

Keys: 4 Values: 4 Map: 0

B.

Keys: 4 Values: 4 Map: 4

C.

The compilation fails.

D.

Keys: 0 Values: 0 Map:

E.

Keys: 0 Values: 0 Map: 0

Given:

Which annotation should be used to remove warnings from compilation?

A.

@SuppressWarnings on the main and print methods

B.

@SuppressWarnings(“unchecked”) on main and @SafeVarargs on the print method

C.

@SuppressWarnings(“rawtypes”) on main and @SafeVarargs on the print method

D.

@SuppressWarnings(“all”) on the main and print methods

Which statement about a functional interface is true?

A.

It must be defined with the public access modifier.

B.

It must be annotated with @FunctionalInterface.

C.

It is declared with a single abstract method.

D.

It is declared with a single default method.

E.

It cannot have any private methods and static methods.

Given:

Which two statements are valid to be written in this interface? (Choose two.)

A.

public abstract void methodB();

B.

final void methodG(){System.out.println(“G”);}

C.

private abstract void methodC();

D.

public String methodD();

E.

public int x;

F.

final void methodE();

G.

public void methodF(){System.out.println(“F”);}

Given:

What is the result?

A.

An indexOutofBoundsException is thrown at runtime.

B.

At once 0

C.

Hat at store 4

D.

At once 1

E.

Hat at store 1

Given these two classes:

And given this fragment:

Which describes the fragment?

A.

It throws IllegalMonitorStateException.

B.

It is subject to deadlock.

C.

It is subject to livelock.

D.

The code does not compile.

Given:

and the code fragment:

Which two Map objects group all employees with a salary greater than 30 by neighborhood? (Choose two.)

A)

B)

C)

D)

E)

A.

Option

B.

Option

C.

Option

D.

Option