Question 136

Given:

What is the result?
  • Question 137

    Given the content of /resourses/Message.properties:
    welcome1="Good day!"
    and given the code fragment:
    Properties prop = new Properties ();
    FileInputStream fis = new FileInputStream ("/resources/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?
  • Question 138

    Which statement is true about java.util.stream.Stream?
  • Question 139

    Given the following classes:

    And given the following main method:

    Which two options fail to compile when placed at line n1 of the main method?
  • Question 140

    Given:

    And given the commands:
    javac Test . java
    java Test
    What is the result?