Core Java
-
JDK 16: Stream to List In One Easy Call
As Java functional streams have become increasingly popular, an increasing number of requests is being made for new stream operations…
Read More » -
Java’s String.repeat Method in Action: Building PreparedStatement with Dynamic Number of Parameters
Java’s String.repeat(int) method is an example of a “small” addition to Java (introduced with JDK 11) that I find myself…
Read More » -
Java – Get Time In MilliSeconds
A quick guide to get the current date time in milliseconds using Date, Calendar and java 8 api classes. 1.…
Read More » -
Java Program To Check Palindrome String Using Recursion
A quick guide to check the string is palindrome or not using recursion in java. 1. Overview In this tutorial,…
Read More » -
Converting Between LocalDate and SQL Date In Java 8
A quick guide to convert between LocalDate and java.sql.Date objects in java 8 with examples. 1. Overview In this tutorial,…
Read More » -
Introduction to GraalVM (Community Edition): Revolution or Evolution?
1. Introduction Over the last couple of years we have witnessed the astonishing pace and scale of the innovations in…
Read More » -
ThreadLocal in Java – Example Program and Tutorial
ThreadLocal in Java is another way to achieve thread-safety apart from writing immutable classes. If you have been writing multi-threaded…
Read More » -
Java Extension Methods
Whither Extension Methods? Apparently, there’s a java dialect called XTend which does this, but there’s no obvious equivalent of extension…
Read More » -
Overview of implementing Distributed Locks
As we know, locks are generally used to monitor and control access to shared resources by multiple threads at the…
Read More »