nerdexam
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)
  • A
    8% (4)
  • B
    4% (2)
  • C
    78% (39)
  • D
    10% (5)

Community Discussion

No community discussion yet for this question.

Full 1Z0-804 Practice