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 is the difference between equals method and ==

Answer Posted / r ramya

== checks the string value
equals for checking the strinhg object
String s1="hai";
String s2=new String("hai");
sop(s1==s2);//false
sop(s1.equals(s2));//true

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a super method?

926


What is integers and example?

924


What are the types of sockets in java?

1057


Is array passed by reference in java?

981


What is difference between float and double?

914


Why does java does not support multiple inheritance? Explain

924


What is ‘is-a ‘ relationship in java?

975


What is extension method in java?

990


What is an example of procedure?

956


What are the six ways to use this keyword?

1010


What is the difference between final, finally and finalize()?

1065


What is exception propagation?

1072


What is meant by JVM? Is JVM platform independent or not?

1010


Why hashset is used in java?

1003


What does flag mean in java?

969