Java 18 – starter kit

Started doing some GISTS around Java 18., The new String text block to convert String objects to a JSON string., here is the quick GIST package me.sathish; public class Main { public static void main(String[] args) { String simpleJSONData = """ { "fullName": "%s", "aadress": "%s", "title": "%s" } """; System.out.println(simpleJSONData.formatted("Sathish Jayapal", "18 Java version … Continue reading Java 18 – starter kit →

ZGC options with Java 16

Java 16 provides production ready ZGC garbage collection. For example here is a sample code that is going to run out of memory with a regular JRE integration, I compared the code run with Java 8 and Java 16. There is an option to log the GC cycles with a VM option, but i felt … Continue reading ZGC options with Java 16 →