Having the following code:
String s="JAVA"; for(i=0; i<=100; i++) s=s+"JVM"; How many Strings are created? My guess is that 103 Strings are created:
1: the String "JAVA" in the String pool
1: the String "JVM" also in the String pool
101: the new String s is created every time in the loop because the String is an Immutable class