Top 15 Java8 Interview Questions for Experienced Developer
1. What is a functional interface in Java 8? A functional interface has exactly one abstract method. It can have multiple default or static methods. Example: Runnable, Comparator, or custom: @FunctionalInterfaceinterface MyFunc { void execute(); } 2. What is a lambda expression? A lambda expression provides a concise way to represent an anonymous function. Example: […]