If i try str = str1 + str2, then how many objects get created.
there are three objects ...... two already exists str1,str2 and new str
my doubt is that str =str + str2 ............ how many objects created
i think 3 objects are old : str , str2 and new : str
two object has reference and one object without reference
correct me if not