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?
A. final String getFirstLetter() { return A.toString(); }
B. static String getFirstLetter() { return Alphabet.values()[1].toString(); }
C. static String getFirstLetter() { return A.toString(); }
D. String getFirstLetter() { return A.toString(); }
Given:
var data = new ArrayList<>();
data.add("Peter");
data.add(30);
data.add("Market Road");
data.set(1, 25);
data.remove(2);
data.set(3, 1000L);
System.out.print(data);
What is the output?
A. [Market Road, 1000]
B. [Peter, 30, Market Road]
C. [Peter, 25, null, 1000]
D. An exception is thrown at run time.
Given: String originalPath = "data\\projects\\a-project\\..\\..\\another-project"; Path path = Paths.get(originalPath); System.out.print(path.normalize());
What is the result?
A. data\another-project
B. data\projects\a-project\another-project
C. data\\projects\\a-project\\..\\..\\another-project
D. data\projects\a-project\..\..\another-project
Given:

When is the readObject method called?
A. before this object is deserialized
B. after this object is deserialized
C. before this object Is serialized
D. The method is never called.
E. after this object is serialized
Given:

After which line can we insert assert i < 0 || values[i] <= values[i + 1]; to verify that the values array is partially sorted?
A. after line 8
B. after line 6
C. after line 5
D. after line 10
Given:

Which is true about line 1?
A. If the value is not present, a NoSuchElementException is thrown at run time.
B. It always executes the System.out::print statement.
C. If the value is not present, a NullPointerException is thrown at run time.
D. If the value is not present, nothing is done.
Given the Person class with age and name along with getter and setter methods, and this code fragment:

What will be the result?
A. Aman Tom Peter
B. Tom Aman Peter
C. Aman Peter Tom
D. Tom Peter Aman
Which three guidelines are used to protect confidential information? (Choose three.)
A. Limit access to objects holding confidential information.
B. Clearly identify and label confidential information.
C. Manage confidential and other information uniformly.
D. Transparently handle information to improve diagnostics.
E. Treat user input as normal information.
F. Validate input before storing confidential information.
G. Encapsulate confidential information.
Which two statements independently compile? (Choose two.)
A. List super Short> list = new ArrayList
B. List super Number> list = new ArrayList
C. List extends Number> list = new ArrayList
D. List extends Number> list = new ArrayList
E. List super Float> list = new ArrayList