Efficient Word Frequency Calculator in Java 1. Overview In this tutorial, we’ll show various ways of implementing a word counter in Java. 2. Counter Implementations Let’s start by simply calculating the word count of words in this array: static String[] COUNTRY_NAMES = { “China”, “Australia”, “India”, “USA”, “USSR”, “UK”, “China”,… Continue Reading java-word-frequency

RegEx for matching Date Pattern in Java 1. Introduction Regular expressions are a powerful tool for matching various kinds of patterns when used appropriately. In this article, we’ll use java.util.regex package to determine whether a given String contains a valid date or not. For an introduction to regular expressions, refer… Continue Reading java-date-regular-expressions

Proxy in Hibernate load() Method 1. Overview In this tutorial, we’ll see what a proxy is in the context of Hibernate’s load() method. For readers new to Hibernate, consider getting familiar with basics first. 2. A Brief Introduction To Proxies and load() method By definition, a proxy is “a function authorized… Continue Reading hibernate-proxy-load-method

Java 10 Performance Improvements 1. Overview In this quick tutorial, we will discuss the performance improvements that come along with the latest Java 10 release. These improvements apply to all applications running under JDK 10, with no need for any code changes to leverage them. 2. Parallel Full GC for G1… Continue Reading java-10-performance-improvements

Validating Container Elements with Bean Validation 2.0 1. Overview The 2.0 Version of the Java Bean Validation specification adds several new features, among which is the possibility to validate elements of containers. This new functionality takes advantage of type annotations introduced in Java 8. Therefore it requires Java version 8… Continue Reading bean-validation-container-elements