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

If I only change the return type, does the method become overloaded?

876


What is t in generics in java?

1005


Explain about object oriented programming and its features?

967


What the difference is between execute, execute Query, execute Update?

774


What are loops in java? What are three types of loops?

986


Can we change the scope of the overridden method in the subclass?

1317


Why java is a platform independent? Explain

1008


What is the use of static methods?

998


What is set string?

1084


What checkbox method allows you to tell if a checkbox is checked?

948


What is the difference between numeric and integer?

951


Explain the concept of hashtables?

1062


Why is serialization required?

915


Are registers volatile?

885


Is age a discrete variable?

918