nerdexam
Oracle

1Z0-851 · Question #198

Given a valid DateFormat object named df, and 16. Date d = new Date(0L); 17. String ds = "December 15, 2004"; 18. //insert code here What updates d's value with the date represented by ds?

The correct answer is C. try {. See the full explanation below for the reasoning.

Question

Given a valid DateFormat object named df, and 16. Date d = new Date(0L); 17. String ds = "December 15, 2004"; 18. //insert code here What updates d's value with the date represented by ds?

Options

  • Ad = df.parse(ds);
  • Bd = df.getDate(ds);
  • Ctry {
  • Dtry {

How the community answered

(24 responses)
  • B
    4% (1)
  • C
    83% (20)
  • D
    13% (3)

Community Discussion

No community discussion yet for this question.

Full 1Z0-851 Practice