-
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()); 6. Method References 7. Optional Class 8. New Date and Time API (java.time package) 9. Collectors Class 10. ForEach() Method
-
Spring Security Internal Flow
Spring Security is a powerful framework that provides authentication, authorization, and other security features for Java applications, particularly web applications. Understanding the internal flow of Spring Security configuration and its behavior. Overview of the Internal Flow The internal flow of Spring Security involves several components that work together to manage security concerns such as authentication and authorization . Spring Security Filters A series of Spring filters intercept each request & work together to identify if Authentication is required or not . if authentication is required, accordingly navigate the user to login page or use the existing details stored during initial authentication . Common Security Filters in the Chain: LogoutFilter:…