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 method is used to compare two strings ?

Answer Posted / suman

The == operator works on String object references. If two
String variables point to the same object in memory, the
comparison returns a true result.

The equals method compares the actual char content of two
strings. This method returns true when two String objects
hold char data with the same values.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why java is called not pure object oriented language?

979


What is try-with-resources in java?

1110


What is the output of the below java program?

995


What are the 6 mandatory procedures for iso 9001?

963


Explain about main thread in java?

1043


What is application tier?

1058


What are alternatives to java serialization?

1064


How to find the given number is a prime number or not by getting input from the user

1036


What is an example of procedure?

968


how to write a program for sending mails between client and server

2032


what methods would you overwrite in java.lang.object class?

961


Why unicode is important?

900


What is passing by reference in java?

972


What is default constructors?

942


What is use of set in java?

940