Oracle
1Z0-804 · Question #94
Given the code fragment: SimpleDataFormat sdf; Which code fragment displays the three-character month abbreviation?
The correct answer is C. SimpleDateFormat sdf = new SimpleDateFormat ("MMM", Locale.UK). See the full explanation below for the reasoning.
Question
Given the code fragment:
SimpleDataFormat sdf; Which code fragment displays the three-character month abbreviation?
Options
- ASimpleDateFormat sdf = new SimpleDateFormat ("mm", Locale.UK);
- BSimpleDateFormat sdf = new SimpleDateFormat ("MM", Locale.UK);
- CSimpleDateFormat sdf = new SimpleDateFormat ("MMM", Locale.UK);
- DSimpleDateFormat sdf = new SimpleDateFormat ("MMMM", Locale.UK);
How the community answered
(50 responses)- A8% (4)
- B4% (2)
- C78% (39)
- D10% (5)
Community Discussion
No community discussion yet for this question.