Tuesday 30 January 2018

Java-8-Interview questions

Java 8 Interview Questions

  1. Why do we need change to Java again?
  2. Java SE 8 New Features?
  3. Advantages of Java SE 8 New Features?
  4. What is Lambda Expression?
  5. What are the three parts of a Lambda Expression? What is the type of Lambda Expression?
  6. What is a Functional Interface? What is SAM Interface?
  7. Is is possible to define our own Functional Interface? What is @FunctionalInterface? What are the rules to define a Functional Interface?
  8. Is @FunctionalInterface annotation mandatory to define a Functional Interface? What is the use of @FunctionalInterface annotation? Why do we need Functional Interfaces in Java?
  9. When do we go for Java 8 Stream API? Why do we need to use Java 8 Stream API in our projects?
  10. Explain Differences between Collection API and Stream API?
  11. What is Spliterator in Java SE 8?Differences between Iterator and Spliterator in Java SE 8?
  12. What is Optional in Java 8? What is the use of Optional?Advantages of Java 8 Optional?
  13. What is Type Inference? Is Type Inference available in older versions like Java 7 and Before 7 or it is available only in Java SE 8?

40 Latest Interview Questions and Answers on Spring, Spring MVC, and Spring Boot

  40 Latest Interview Questions and Answers on Spring, Spring MVC, and Spring Boot 1. What is Tight Coupling? When a class (ClassA) is depen...