What is string pool in java
Ask by Anonymous User
Updated 23 Sep 2020
String n1 = new String("ABCD");String n2 = new String("ABCD");
if(n1 == n2) System.out.println("equal"); //No output.