nerdexam
Oracle

1Z0-819 · Question #115

Which two are functional interfaces? (Choose two.)

The correct answer is A. @FunctionalInterface interface MyRunnable { public void run(); } C. interface MyRunnable { public default void run() {} public void run(String s); }. See the full explanation below for the reasoning.

Question

Which two are functional interfaces? (Choose two.)

Options

  • A@FunctionalInterface interface MyRunnable { public void run(); }
  • B@FunctionalInterface interface MyRunnable { public void run(); } interface MyInterface {}
  • Cinterface MyRunnable { public default void run() {} public void run(String s); }
  • D@FunctionalInterface interface MyInterface {}
  • Einterface MyRunnable { @FunctionalInterface public void run(); }

How the community answered

(25 responses)
  • A
    76% (19)
  • B
    12% (3)
  • D
    8% (2)
  • E
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-819 Practice