Blog Archives

Understanding The Java Memory Model and The Garbage Collection

In this article, we will try to understand the Java memory model and how the garbage collection works. In this article, I have used JDK8 Oracle Hot Spot 64 bit JVM. First, let me depict the different memory areas available

Tagged with: , , ,
Posted in Java, Performance

Hadlebars.java – How to use it as Server side Template Engine?

               handlebars.java is a server-side Java template engine like velocity, freemaker, etc. It follows the syntax of Mustache spec. The main goal of handlebar.java is to reuse the same templates at client side and

Tagged with: , ,
Posted in Java

Java 8 StringJoiner – Old Wine With a New Bottle

Ultimately Java 8 is shipped with StringJoiner class under java.util package. I don’t think it is a very different implementation to join the strings compared to our old school approach by using StringBuffer/StringBuilder. We will see the usage of the

Tagged with: ,
Posted in Java

Jdeps – Java class dependency analyzer

In Java 8 we got a new command line tool called jdeps to know the Java dependencies. It is a nice tool to do static analysis and find out the .class/jar dependencies. For example, I have a class and wanted to

Tagged with:
Posted in Java

Java 8 – New way to deal with Date and Time

In this article, we will discuss Java 8 Date/Time API. The new Date/Time API was one of the long pending requests from the Java developer community. As the existing Date, related API is not developer friendly. With the older versions of

Tagged with: ,
Posted in Java

Java 8 – Default Methods in Interfaces

In this article, we will explore the Java 8 default method’s feature in interfaces. The Java 8 says “Default methods enable new functionality to be added to the interfaces in libraries and ensure binary compatibility with code written for older

Tagged with: ,
Posted in Java

Java 8 : Base64 Encoding & Decoding

                 The Base64 encoding and decoding is a long overdue JDK API feature. As part of Java 8 the Base64 encoding and decoding feature came into Java standard library. Earlier we were using

Tagged with: ,
Posted in Java
DZone

DZone MVB

Java Code Geeks
Java Code Geeks