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 mechanism does java use for memory management?

978


What do you understand by casting in java language?

1029


Why do we declare a class static?

1153


Can a class extend more than one class?

1124


What is the difference between static and global variables and also define what are volatile variables?

1049


Do I need java on my pc?

1047


What is boolean data type in java?

997


What is a Hash Table? What are the advantages of using a hash table?

1088


What is a type parameter in java?

992


What is protected in java?

1000


What is a default constructor and also define copy contrucyor?

1108


How is java hashmap implemented?

1031


Why do we need data serialization?

993


Is string a class in java?

983


What is class and object in java?

1005