1Z1-816試験無料問題集「Oracle Java SE 11 Programmer II 認定」

Given this enum declaration:

Examine this code:
System.out.println(Alphabet.getFirstLetter());
What code should be written at line 3 to make this code print A?

Given:
public class X {
}
and
public final class Y extends X {
}
What is the result of compiling these two classes?

解説: (GoShiken メンバーにのみ表示されます)
Which interface in the java.util.function package will return a void return type?

解説: (GoShiken メンバーにのみ表示されます)
Given the declaration:

Examine this code fragment:
/* Loc1 */ class ProcessOrders { ... }
Which two annotations may be applied at Loc1 in the code fragment? (Choose two.)

Given:

and

What is the result?

解説: (GoShiken メンバーにのみ表示されます)
Given:

What action ensures successful compilation?

解説: (GoShiken メンバーにのみ表示されます)
Assuming the Widget class has a getPrice method, this code does not compile:

Which two statements, independently, would allow this code to compile? (Choose two.)

Given:

What is the output?

解説: (GoShiken メンバーにのみ表示されます)