JavaSERelevant topics

Double colon (::) operator in Java

by:

The double colon (::) operator, also known as method reference operator in Java, is used to call a method by referring to it with the help …

Design PatternsJavaSERelevant topics

Abstract Factory Pattern

by:

Abstract factory Pattern is a creational pattern that works around a super factory which creates other factories. It is also called as factory of factories. In …

Design PatternsJavaSERelevant topics

Adapter Pattern

by:

Adapter Pattern works as a bridge between two incompatible interfaces. This is a structural pattern that combines the capability of two different interfaces. Adapter Pattern involves …

Design PatternsJavaSERelevant topics

Bridge Pattern

by:

Bridge Pattern is a structural pattern that is used when there is a need to decouple an abstraction from its implementation so that they can vary …

Design PatternsJavaSERelevant topics

Factory Pattern

by:

Factory Pattern is a creational pattern as it is used for creating an object. This pattern allows to create an object without exposing the creation logic …

FrameworksRelevant topicsSpring

Spring Boot and H2 in memory database – why, what and how ?

by:

Frequently asked questions about Spring Boot, JPA, Hibernate and H2 Q: How does H2 and Spring Boot combination work ? Spring Boot is intelligent – if …

JavaEEJPARelevant topics

JPA Specification

by:

Differences between JPA and Hibernate JPA is a Java specification that is used to access, manage and persist data between Java object and relational database. It …

Build ToolsMavenOtherRelevant topics

Maven BOM (Bill of Materials)

by:

Transitive dependencies are those that are not defined explicitly in pom.xml, but are used by dependencies defined in pom.xml. Versions conflicts can occur when different dependencies …

ConcurrencyJavaSERelevant topics

Java ThreadLocal

by:

It is essential to note that ThreadLocal instances are typically private static fields that wish to associate state with a thread (e. g., a user ID …

ConcurrencyJavaSERelevant topics

Java Volatile Keyword

by:

Volatile is not always enough. Volatile is suitable solution only for reading and writing a value from/to variable. But imagine the situation when Thread 1 reads …