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

What is string data type?

1019


What is the use of math abs in java?

1065


What does math floor () do?

1008


What class allows you to read objects directly from a stream?

1380


How to split a string in java?

1181


What is the base class of all exception classes in java?

1105


What is the purpose of final keyword and when to use it?

1055


What is a parameter in a function?

1036


Can we call thread start () twice?

1010


Give us the name of the list layoutmanagers in java?

958


How many bytes is double?

1046


What is the difference between jvm and jre? What is an interface?

1149


What is the covariant return type?

1159


Does treeset use compareto?

1021


Write a java program that prints all the values given at command-line.

1053