Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

What is the difference between == & .equals()?
The == and eqauls() method, both are used to check the equality of the two strings, 
but in the different sense.The eqauls() method put the two strings in the two different 
arrays and compare the characters one by one. If all the characters are matched then this 
method will 
return true otherwise false.The == operator checks wheater the two strings points to 
the same the object or not. The == operator checks the bit pattern of the two references.
Posted By: Name:Rajesh Kr URL: What is the difference between == & .equals()?