Oracle
1Z0-804 · Question #97
Given the code format: SimpleDateFormat sdf; Which code statements will display the full text month name?
The correct answer is D. sdf = new SimpleDateFormat ("MMMM", Locale.UK). Typical output would be Current Month in M format: 2 Current Month in MM format: 02 Current Month in MMM format: Feb Current Month in MMMM format: February
Localization
Question
Given the code format:
SimpleDateFormat sdf; Which code statements will display the full text month name?
Options
- Asdf = new SimpleDateFormat ("mm", Locale.UK);
- Bsdf = new SimpleDateFormat ("MM", Locale.UK);
- Csdf = new SimpleDateFormat ("MMM", Locale.UK);
- Dsdf = new SimpleDateFormat ("MMMM", Locale.UK);
How the community answered
(36 responses)- A6% (2)
- B17% (6)
- C6% (2)
- D72% (26)
Explanation
Typical output would be Current Month in M format: 2 Current Month in MM format: 02 Current Month in MMM format: Feb Current Month in MMMM format: February
Topics
#SimpleDateFormat#date pattern#MMMM#month formatting
Community Discussion
No community discussion yet for this question.