Question 36

Given:
public class X {
}
and
public final class Y extends X {
}
What is the result of compiling these two classes?
  • Question 37

    Given:

    What is the result?
  • Question 38

    Which two interfaces are considered to be functional interfaces? (Choose two.)
    @FunctionalInterface
  • Question 39

    Given:

    Why does D cause a compilation error?
  • Question 40

    Given the code fragment:

    You want to display the value of currency as $100.00.
    Which code inserted on line 1 will accomplish this?