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

What are the advantages of java?

0 Answers  


What is an empty class? What functionality does it offer in Java?

0 Answers   Deloitte, EXL, JPMorgan Chase,


what is Thread?

6 Answers  


What is included in core java?

0 Answers  


What is deserialization and how do we do deserialization?

3 Answers   Synechron,


what are different ways in which a thread can enter the waiting state? : Java thread

0 Answers  


What does arrays sort do in java?

0 Answers  


we cannot create an object of interface but we can create a variable of it

1 Answers  


Explain the importance of throws keyword in java?

0 Answers  


What do you mean by ternary operator in java?

0 Answers  


What are computer functions?

0 Answers  


Which sorting algorithm is best in java?

0 Answers  


Categories