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(); }
This section is not available anymore. Please use the main Exam Page.1z0-816 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Sa16253748596
10 months, 1 week ago