nerdexam
Oracle

1Z0-804 · Question #154

Given the code fragment: SimpleDateFormat sdf = new SimpleDateFormat("zzzz", Locale.US); System.out.println ("Result: " + sdf.format(today) ) ; What type of result is printed?

Sign in or unlock 1Z0-804 to reveal the answer and full explanation for question #154. The question stem and answer options stay visible for context.

Localization

Question

Given the code fragment:

SimpleDateFormat sdf = new SimpleDateFormat("zzzz", Locale.US); 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)

Unlock 1Z0-804 to see the answer

You've previewed enough free 1Z0-804 questions. Unlock 1Z0-804 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#SimpleDateFormat#time zone formatting#format patterns#date localization
Full 1Z0-804 Practice