String s = "Hello"; means one object with value "Hello" will be created in the heap and reference variable s will refer to the object.but whenString s1 = s+"World";w...
Very tricky question.Asked me in Oracle interview for 4 years level of expHere is the answer: When JVM see the code where two three string objects has been added with + operator then it is using the S...