String Constant Pool
package com.test.test1;
public class StringPool {
public static void main(String[] args) {
String str3 = "Harry";
String str4 = "Harry";
System.out.println(str3);
System.out.println(str4);
}
}


Problem: Count the number of strings.

Last updated