-
Core Java
AssertJ Ignore Fields Comparison Example
1. Introduction AssertJ is a fluent assertion library for Java. It’s open-source and supported by the AssertJ team under Apache…
Read More » -
Enterprise Java
Spring Data DynamicInsert Annotation Example
1. Introduction Spring Data JPA supports common JPA providers, e.g. Hibernate, EclipseLink, etc. Hibernate pre-generates and caches static SQL insert…
Read More » -
Enterprise Java
Find Nested Key via Jackson Example
1. Introduction JavaScript Object Notation (JSON) is a text-based format for storing and exchanging data. It’s commonly used to transfer data…
Read More » -
Core Java
String and StringBuilder Converting Example
1. Introduction Java String class is from the java.lang package and represents a sequence of characters and it’s immutable. The…
Read More » -
Core Java
Select Value From Dropdown Using Selenium Webdriver Example
1. Introduction Selenium is an open-source testing framework for web applications. It supports common web browsers. For example, Selenium supports Google…
Read More » -
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 »