Question Set 1

Java 8

  1. What are the advantages of using the Stream API in Java 8?

  2. How do you handle null values in Java 8 streams?

  3. Can you explain the difference between the map() and flatMap() methods in Java 8 streams?

  4. What is the purpose of the Collector interface in Java 8 streams?

  5. How does the Optional class work in Java 8, and what are its benefits?

  6. Can you explain the concept of lambda expressions in Java 8, and how they are used in functional programming?

  7. What is the difference between an abstract class and an interface in Java 8, and when should you use each one?

  8. How do you implement parallel processing in Java 8 streams, and what are the benefits?

  9. Can you explain the new features added to the Date and Time API in Java 8, and how they improve upon the previous API?

  10. How do you handle exceptions in Java 8 streams, and what are some best practices for doing so?

Spring Boot

Spring Annotations

  1. What is the difference between @Component, @Service, and @Repository annotations in Spring?

  2. What is the difference between @RestController and @Controller annotations in Spring Boot?

  3. What is the purpose of the Spring annotation @ComponentScan?

  4. What is the difference between @ComponentScan and @EntityScan annotations in Spring?

  5. What is the use of @Primary and @Qualifier annotations in Spring and when should they be used?

  6. What is the purpose of @Autowired annotation in Spring and how does it work?

Spring Boot

  1. Can you explain the concept of "auto-configuration" in Spring Boot?

  2. How does Spring Boot handle external configurations?

  3. What is Spring Boot Actuator and how does it help in monitoring and managing the application?

  4. How does Spring Boot enable microservices architecture?

  5. What is the role of the @SpringBootApplication annotation in a Spring Boot application?

  6. What is the use of the @ConditionalOnProperty annotation in Spring Boot?

  7. Can you explain the concept of "profiles" in Spring Boot?

  8. What is a Spring Boot profile and how it is used?

  9. What is the significance of using Spring Boot for a developer and how does it help in development?

Spring Security

  1. What are the different ways to implement authentication and authorization in Spring Boot?

  2. How can security be implemented in a Spring application?

  3. How can JWT tokens be used to execute security in a Spring application?

  4. How can exception handling be implemented in a Spring application?

IOC (Inversion of Control) Containers

  1. What are the different types of IOC (Inversion of Control) containers in Spring?

Last updated