Thread: Quiz Time
View Single Post
  #32 (permalink)  
Old 05-08-2008, 12:19 PM
sanjeevtarar's Avatar
sanjeevtarar sanjeevtarar is offline
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
sanjeevtarar is on a distinguished road
Quote:
Originally Posted by Eranga View Post
Still there are lots of points to talk. May be not for us, for newbie specially.

Ok, Sanjeev and Rakesh, can you the difference about those two line of code.

Code:
if("String".trim() == "String".trim())
and

Code:
if("String".trim() == "String ".trim())
Did you see the slight difference there. My next quiz is, the answer is changed or remain as "Yes"?



Ans will be YES ...... because trim() method will be called first
__________________
sanjeev,संजीव
Reply With Quote