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 difference between “==” and equals()?



What is difference between “==” and equals()?..

Answer / javamasque

“==”: It compares references (memory locations). It does not compares values in the memory location. Hence it is not recommended to find the equality of two objects. It is mostly used to compare primitive types.

equals(): It is used to find the equality of two objects. It actually compares with the values that an object contains.

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More Core Java Interview Questions

Name the immediate superclass of the MenuComponent class?

1 Answers  


while creating thread why we extend thread class

2 Answers  


Which data type is a class in java?

0 Answers  


what is diff bet iterator and enumeration?

4 Answers  


Explain the importance of finally block in java?

0 Answers  


why static class in java or what is use of static class in java

3 Answers   SunGard,


What is keyword and identifier?

0 Answers  


What is main difference between variable and constant?

0 Answers  


What is boolean data type in java?

0 Answers  


What is the purpose of an interface?

0 Answers  


What is a priority queue java?

0 Answers  


What are loops in java?

2 Answers  


Categories