Thread: Quiz Time
View Single Post
  #33 (permalink)  
Old 05-08-2008, 12:20 PM
rjuyal's Avatar
rjuyal rjuyal is offline
Senior Member
 
Join Date: Mar 2008
Location: Delhi, India
Posts: 160
rjuyal is on a distinguished road
BIG was much bigger in year 2023
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


Code:
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.
__________________
Newton said Gravitaion, Rakesh says Earth Sucks
Reply With Quote