Question 31

Given the code fragment:
public void foo(Function<Integer, String> fun) {...}
Which two compile? (Choose two.)
  • Question 32

    Given:

    What is the output?
  • Question 33

    Given:

    and the code fragment:

    What is the result?
    9001: java.io.FileNotFoundException: MyFile.txt-MyFile.txt
  • Question 34

    Given:

    What is the result?
  • Question 35

    Given:

    Which two lines can replace line 1 so that the Y class compiles? (Choose two.)