Question 131

Given the code fragment:

Which code fragment, when inserted at line n1, enables the code to print /First.txt?
  • Question 132

    Given the code fragment:

    Which statement can be inserted into line n1 to print 1,2; 1,10; 2,20;?
  • Question 133

    Given the code fragment:

    What is the result?
  • Question 134

    Given the code fragment:
    ZonedDateTime depart = ZonedDateTime.of(2015, 1, 15, 1, 0, 0, 0, ZoneID.of("UTC-7")); ZonedDateTime arrive = ZonedDateTime.of(2015, 1, 15, 9, 0, 0, 0, ZoneID.of("UTC-5")); long hrs = ChronoUnit.HOURS.between(depart, arrive); //line n1 System.out.println("Travel time is" + hrs + "hours"); What is the result?
  • Question 135

    Given the code fragment:
    List<String> listVal = Arrays.asList("Joe", "Paul", "Alice", "Tom");
    System.out.println (
    // line n1
    );
    Which code fragment, when inserted at line n1, enables the code to print the count of string elements whose length is greater than three?