1 In this example we are going to talk about a very interesting subject, Java String pool.
2 package com.javacodegeeks.core.lang.string; public class StringConcatenationExample { public static void main(String[]args){ String str1 = "abc"; St..
3 So as you can see str1 and str1 are pointing to the same String object.