A

Admin • 828.70K Points
Coach

Q. Can a lambda expression throw a checked exception?

  • (A) No
  • (B) Yes, if declared in the functional interface
  • (C) Only runtime exceptions
  • (D) Only in custom functional interfaces

Explanation by: Admin
A lambda can throw a checked exception if the method in the functional interface declares it.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.