-
Java 8 Features
Java 8 was introduced to modernize Java by adding functional programming features, improving performance, and making the language more concise, readable, and expressive. It aimed to reduce boilerplate code, improve parallel processing, and enable more declarative coding styles—especially important for handling large data collections and multi-core processors. Lambda Expressions 2. Functional Interfaces 3. Default Method in Interface 4.Static Method in Interface Interface MyInterface { default void show() { System.out.println("Default method"); }} 5. Stream API list.stream().filter(s -> s.startsWith("A")).collect(Collectors.toList()); Intermediate (Non-Terminal) operations Example : Terminal operations 6. Method References 7. Optional Class 8. New Date and Time API (java.time package) Old API problems: New API advantages: 9. Collectors Class Commonly Used Collectors…
-
Spring Security Internal Flow
What is spring boot?. Spring Boot is a Java-based framework built on top of Spring Framework that helps developers create production-ready applications quickly with minimal configuration. In simple words: Normally, when using Spring Framework, developers need to configure many things manually such as: Spring Boot simplifies this by providing pre-configured setups so you can focus more on writing business logic rather than infrastructure code. Key Features of Spring Boot: Auto ConfigurationAutomatically configures your application based on dependencies added in your project. Example:If you add MySQL dependency, Spring Boot can automatically configure database settings. Standalone ApplicationsIt comes with embedded servers like: So you don’t need to deploy your application separately on…