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 collections api?

1116


What flag up means?

1072


Is zero a natural number?

1097


Can finally block be used without a catch?

1057


What does localhost mean?

1006


Can list have duplicates in java?

956


In how many ways we can do synchronization in java?

1009


Is main a keyword in java?

1023


How can an exception be thrown manually by a programmer?

1046


what is instanceof operator used in java?

1080


What is difference between equals and hashcode method?

1202


What are the supported platforms by java programming language?

1086


What are 3 boolean operators?

1050


What is null in java?

1023


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

1134