Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between equals method and ==

Answer Posted / devarathnam c,kotagudibanda(po

Hi...
"equals()" method always compares the content of an
object,but "==" operator compares the memory locations
(references).
eg: String s1="KOTAGUDIBANDA";
Where "s1" is a reference and "KOTAGUDIBANDA"is a content.

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the process as to how substring() methodology mechanisms in java.

1129


Explain runtime exceptions?

1177


What is the difference between final, finally and finalize() in java?

1155


What programs use java?

959


What classes of exceptions may be caught by a catch clause in java programming?

1179


Why is the singleton pattern considered to be an anti pattern?

886


What do you understand by weak reference?

1011


What is the use of default method in interface in java? Explain

1006


Can you start a thread twice in Java?

1117


What is variable and its types?

1016


What is difference between length and length() method in java ?

995


How many threads can I run java?

1117


Can a class have a static inner class?

1082


What do bitwise operators do?

1013


What is the best way to findout the time/memory consuming process?

1032