Java 8 stream api sample code to join a list of strings using another character alongwith a conditional flow and also to find distinct and sorted result
Deadlocks, A Common Problem in Multithreaded Applications, How to prevent the Race Conditions with Synchronization that is Key to Safe and Efficient Multithreading.
Confused about Checked and Unchecked Exceptions? Do not be, Check out this article to understand when to use them and how to handle these exceptions and yes, unchecked exceptions are not the same as runtime exceptions.
What is a Hashing technique in Java? How to implement using a hash table? Different types of hashing algorithms, Benefits and drawbacks, when and when not to use.
Learn about Java Multithreading in this tutorial with examples, best practices, performance, deadlocks, synchronization, concurrency, security, and debugging.
What is java exception handling, How to write custom exceptions in java with exception hierarchy using try-catch, throw and throws keyword, and finally block.
Java generics are a powerful feature that can be used to improve the safety, readability, and maintainability of Java code. Generics can be used when working with collections, generic methods, and generic types. Use generics wisely and avoid using them in situations where they may not be appropriate.
Java annotations are metadata that can be used to provide information about code, control behavior, or be processed by tools. @ symbol is used to create and use annotations.
Java is considered as secure programming language because of its security apis, better memory management, type safety, sandboxing and bytecode verification.
Implement QueryHints annotations in Spring Data JPA by specifying a query hint with the name and value e.g. "javax.persistence.query.timeout" with value 10000.
What's New in Java LTS Versions 8, 11, and 17? Lambda Expression, Functional Interfaces, Streams API, new HTTP client API, new File I/O API, Vector API, and many more. Check out.
Java access modifiers control the visibility of classes, variables, methods, and other members of a Java program. There are four access modifiers in Java.
String is a good candidate for HashMap in Java because of features like immutability, hashability and equality, making it ideal for storing and retrieving objects efficiently.
This is a Swagger UI 3 quick setup guide with Spring Boot in two simple steps. Swagger UI is just one open source project in the thousands that exist in the Swagger ecosystem.
Inheritance in Java is one of the four pillars of OOPS. It depicts a parent-child relationship between classes. It follows an order of execution of constructors.
The term Functional Interface was introduced in Java 8. Functional interfaces are the interfaces which have only one abstract (non-implemented) method.
Is it pass-by-reference or pass-by-value in Java? Primitive type is passed by value and objects passed by reference, understand Java's Pass-by-Value Mechanism.
Lambda expressions is one of java 8 features and used to write anonymous methods of functional interfaces. It has turned Java into functional-style programming.
Kick-start a simple Spring Boot MVC web application with Thymeleaf as a template engine powered by Bootstrap UI. It will have a Data layer as JPA which can support Hibernate/HSQLDB/Spring Data JPA and Mongo DB.
A Quick Guide to Producer-Consumer architecture using Spring-Boot, RabbitMq, and Docker. Spring Boot Microservices and RabbitMQ example with Docker on Windows 10.
There are two ways to set the application context path in the spring boot application. If you are using standalone tomcat server instance, it doesn't allow to use the
server.servlet.context-path property. Refer to below URL:
Check out the difference between String and StringBuffer or Mutable and Immutable classes. Also, learn about the benefit of an immutable object over a mutable object.