Q1)How many
String Objects are created? and what are they?
Also can you tell me how
test how many String Objects are really created?
I am thinking 5 String Objects-
1)test
2)56
3)s.substring(2, 5)=st5
4)s.toUpperCase()=ST5
5)s.toLowerCase()=st5
Q2)why the followinggives error saying that it cannot construct Short
Short y= new Short("6");
Short y= new Short(6);
Short y= new Short((short)6);