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 / k.b.s.reddy

we can use a string function...
eg:
strcmp("string1","string2")
it return 0 if string1=string2
it return >0 if string1>string2
it return <0 if string1<string2.
value returned depends on anscii calues of strings...

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a local variable and an instance variable?

1103


What is indexof?

977


What is meant by null and void?

961


What is ph and buffers?

1000


How hashset works internally in java?

1087


What is the reflection?

999


What is composition in java?

1285


Can you achieve runtime polymorphism by data members?

1143


Which is the best approach for creating thread ?

1210


Should database connections be singleton?

956


Does string is thread-safe in java?

1081


What is java literals?

1127


What is update method called?

1153


Explain notify() method of object class ?

1097


What is the difference between error and an exception?

1146