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 is append in java?

0 Answers  


what is object-oriented programming in java?

0 Answers   Reliance,


what us Dyna action form?

4 Answers   Aithent Technologies,


What is java english?

0 Answers  


State the difference between strings and arrays.

0 Answers   Syntel, Visa,


how to create constants in java?

0 Answers  


Which non-unicode letter characters may be used as the first character of an identifier?

0 Answers  


what is business objects?

2 Answers  


class A { class B { psvm(String args[]) { } } } if the prg saved in A.java whats the o/p?

7 Answers   HCL, TCS,


What are the important features of Java 8 release?

0 Answers  


. Explain Java String Pool.

1 Answers  


why we r not use pointers in corejava?

2 Answers   Samsung,


Categories