GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Tech FAQs  >  Programming  >  Java

 Print  |  
Question:   What is the difference between == & .equals



September 09, 2005 07:15:46 #3
 D.S.Reddy   Member Since: Visitor    Total Comments: N/A 

RE: What is the difference between == & .equals
 

== is used to check whether the references of the both are equal or not?

.equals() is used to the compare the values in that references.

     

 

Back To Question