Java 8 – String Deduplication in G1 Garbage Collector

String Deduplication is an additional feature of G1 Garbage collector, introduced in JDK 8 - 20th update. Its aim is to reduce the Java Heap Live data set by deleting the duplicate instances of a String Object.