nerdexam
Oracle

1Z0-809 · Question #36

Given the content of /resourses/Message.properties: welcome1="Good day!" and given the code fragment: Properties prop = new Properties (); FileInputStream fis = new FileInputStream…

The correct answer is C. Good day! Test null. You've hit your session limit · resets 5:20pm (America/New_York)

Question

Given the content of /resourses/Message.properties: welcome1="Good day!" and given the code fragment: Properties prop = new Properties (); FileInputStream fis = new FileInputStream ("/resourses/Message.properties"); prop.load(fis); System.out.println(prop.getProperty("welcome1")); System.out.println(prop.getProperty("welcome2", "Test")); // line n1 System.out.println(prop.getProperty("welcome3")); What is the result?

Options

  • AGood day! Test followed by an Exception stack trace
  • BGood day! followed by an Exception stack trace
  • CGood day! Test null
  • DA compilation error occurs at line n1.

How the community answered

(53 responses)
  • A
    4% (2)
  • B
    6% (3)
  • C
    79% (42)
  • D
    11% (6)

Explanation

You've hit your session limit · resets 5:20pm (America/New_York)

Community Discussion

No community discussion yet for this question.

Full 1Z0-809 Practice