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 do we need hashset in java?

1033


How many techniques can be employed to create a string object?

1100


How many unicode characters are there?

1040


Is array size fixed in java?

975


What is the difference between the ">>" and " >>>" operators in java?

983


What is string [] args?

999


How to declare objects of a class ?

1067


what are synchronized methods and synchronized statements? : Java thread

990


How are multiple inheritances done in Java?

1134


How many boolean functions are there?

957


What are different access specifiers in java?

1009


What is void data type?

979


Can we write a class without main method in java?

953


Is it possible to write a regular expression to check if string is a number?

1026


What is the method to declare member of a class static?

1007