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...

where is .equals() method and how is it different from ==
operation <giving some confusing implementation> Is hashing
related to these?

Answer Posted / tanuj

== operator return true if both reference variable pointing
to same object.
equals() method also use == as default, but String and
Wrapper classes override (you can also override) it but
meaningfull comparison , as in two same String case it
returns true for equals()method.

for knowing it clearly make small programs by using both.
there are so many exception in wrapper classes.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain naming conventions for packages?

1031


List two java ide’s?

1046


Give the difference between the println method and sqrt method?

1085


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

970


What is off heap memory?

1005


How to sort double array in java?

985


What are the different types of garbage collectors in java?

1141


What are advantages of exception handling in java?

1024


what is the difference between preemptive scheduling and time slicing? : Java thread

1034


Is singleton set an interval?

966


Can an integer be null java?

1006


What are the differences between include directive and include action?

1190


Why java is made?

973


Does sprintf add a null terminator?

1099


Which is better 64 bit or 32 bit?

942