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

How can a gui component handle its own events?

1042


What does string intern() method do?

1036


When do we use synchronized blocks and advantages of using synchronized blocks?

1173


What java is used for?

1025


Is a string literal?

1000


What is method overloading in java ?

1027


how to run ecllipse with jettyserver for windows environment using batch file

2003


What is the difference between throw and throws in java?

1028


What does exp mean in math?

937


What is an example of a constant variable?

1008


how its run?

1005


Explain yield() method in thread class ?

1002


Are private methods final?

842


What does the “final” keyword mean in front of a variable? A method? A class?

942


What is finalize method?

1042