Core Java
-

How to change procedural code into object-oriented one?
What style should Clean Code be written in? Clean Code is not always object-oriented. Sometimes it will be written in…
Read More » -

Java Compress/Decompress String/Data
Java provides the Deflater class for general purpose compression using the ZLIB compression library. It also provides the DeflaterOutputStream which…
Read More » -

Optional ofNullable() method (With Examples)
A quick guide to Optional ofNullable() method in Java 8 API with Example programs. How to use in the real…
Read More » -

Optional orElse vs orElseGet
Java 8 introduced a fantastic concept of Optional, which we looked into in our blog Java 8 Optional. So just…
Read More » -

Better NullPointerException Messages Automatic in JDK 15
I discussed long-awaited and highly appreciated improvements to NullPointerException (NPE) messages in the posts “Better Default NullPointerException Messages Coming to…
Read More » -

Reverse A String Using Recursion
1. Introduction In this article, You’re going to learn how to reverse a string using recursion approach. The first program…
Read More » -

Java Program To Insertion Sort
Java Program To Insertion Sort With Example. Shown the example simulation along with the time complexity. 1. Introduction Insertion sort…
Read More » -

Local records or classes to improve the readability of stream operations
Java 14 came with the preview language feature of Records — a special lightweight class, comparable to similar constructs in…
Read More » -

Look for exceptions, errors in thread dumps
Thread dumps are vital artifacts to troubleshoot/debug production problems. In the past we have discussed several effective thread dump troubleshooting…
Read More »
