You will get you banana back as your gift, if you give us the example
Using String, use '==' and 'equals' but answer should be different.
Please sanjeev, if you have some example then post it here
if("String".trim() == "String ".trim())
i guess the answer should be same again.
Both will become "String" after trimming, and as String are interned both will have same reference.