Oracle
1Z0-805 · Question #12
Given the code fragment: SimpleDateFormat sdf = new SimpleDateFormat("zzzz", Locale.US); Oracle 1Z0-805 Exam System.out.println ("Result: " + sdf.format(today) ) ; What type of result is printed?
The correct answer is A. Time zone abbreviation. Assuming that the variable today contains a date, the time zone abbreviation, such as Pacific Standard Time or Central European Summer Time, will be printed.
Localization
Question
Given the code fragment:
SimpleDateFormat sdf = new SimpleDateFormat("zzzz", Locale.US); Oracle 1Z0-805 Exam System.out.println ("Result: " + sdf.format(today) ) ; What type of result is printed?
Options
- ATime zone abbreviation
- BFull-text time zone name
- CEra
- DJulian date
- ETime of the Epoch (in milliseconds)
How the community answered
(27 responses)- A78% (21)
- B4% (1)
- C4% (1)
- D11% (3)
- E4% (1)
Explanation
Assuming that the variable today contains a date, the time zone abbreviation, such as Pacific Standard Time or Central European Summer Time, will be printed.
Topics
#SimpleDateFormat#timezone format pattern#date formatting#Locale
Community Discussion
No community discussion yet for this question.