-
Core Java
Insert a Number Into a Sorted Array Example
1. Introduction Manipulating sorted arrays is a common requirement in Java applications that maintain ordered collections either for efficient retrieval…
Read More » -
Core Java
Optional Fields in JPA Entity Example
1. Introduction JPA Entity can have optional fields as not every data is needed for every operation. In this example,…
Read More » -
Core Java
Hibernate @TimeZoneStorage Example
1. Introduction Hibernate 6 introduces TimeZoneStorage annotation that specifies how the time zone information of a persistent property or field…
Read More » -
Core Java
Calling Getclass From a Static Context Example
1. Introduction In Java, the static keyword may be applied to an inner class (a class defined within another class),…
Read More » -
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 »