-
Core Java
Check Array Is Null or Empty Example
1. Introduction An array is a data structure that holds a fixed number of elements with the same data type.…
Read More » -
Enterprise Java
Spring Validator Validation Example
1. Introduction Spring Validation Framework includes the Validator interface that handles data validation. It is used to implement custom validation…
Read More » -
Core Java
JPA Inheritance vs Composition Spring Boot Example
1. Introduction Inheritance is an “IS-A” type of relationship in object-oriented programming (OOP). Inheritance is tightly coupled since child classes…
Read More » -
Core Java
Convert Optional to ArrayList
1. Introduction Java 8 introduced the java.util.Optional class to represent a value that may or may not be present to…
Read More » -
Core Java
Convert Short to Byte Array
1. Introduction Converting a short value to a byte array is a common task when dealing with binary data. In…
Read More » -
Core Java
MapStruct With Inheritance Examples
1. Introduction MapStruct is an open-source, compile-time code generator, and annotation processor. It simplifies the implementation of mappings between different…
Read More » -
Enterprise Java
Spring MockMVC Get JSON As Object
1. Introduction Spring MockMVC is the Spring MVC testing framework which performs Spring MVC request handling and response asserting via…
Read More » -
Enterprise Java
How to Test a Spring AOP Aspect
1. Introduction Aspect-Oriented Programming (AOP) is one of programming paradigms that separates cross-cutting concerns as aspects. It complements Object-Oriented Programming…
Read More » -
Core Java
Lombok Constructor Annotations Example
1. Introduction Lombok is an open-source Java library that generates getter, setter, toString, equals, hashCode, and constructors automatically to reduce…
Read More »