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 / thevendhiran.k

equal method is used to check whether the two strings are
equal(same). exmpl: if the 1st string is 'deva' then it ll
check the 2nd is also 'deva'. whereas = is a assignment
operator used to assign a value to the variable.

Is This Answer Correct ?    13 Yes 54 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of set in java?

1068


What is the preferred size of a component in java programming?

959


Can we use catch statement for checked exceptions?

916


Give few examples of final classes defined in Java API?

1116


What is the constructor?

992


Is a class an object?

944


What is the difference between a choice and a list?

1024


What are the restriction imposed on a static method or a static block of code?

998


Explain when classnotfoundexception will be raised ?

983


Does java map allow duplicates?

841


Tell me how many ways are there to initialise an integer with a constant.

1059


Can a static block throw exception?

1048


What is the difference between double and float variables in java?

1086


What is bigger kb or mb?

980


Can we sort array in java?

892