Question 36

Given:
interface Doable {
public void doSomething (String s);
}
Which two class definitions compile? (Choose two.)
public abstract class Task implements Doable {
  • Question 37

    Given:

    What is the result?
  • Question 38

    Assume customers.txt is accessible and contains multiple lines.
    Which code fragment prints the contents of the customers.txt file?
  • Question 39

    Given the code fragments:

    and

    Which two modifications enable to sort the elements of the emps list? (Choose two.)
  • Question 40

    Given the code fragment:

    What is the result?