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

How does the garbage collector works in java?

1090


How will you reverse a singly-link list?

1001


What is the purpose of encapsulation?

1008


What is the same as procedures?

980


What is the use of arraylist class in java?

1070


Can a class be final?

936


What is difference between java and java ee?

1024


How do you sort arrays in java?

921


What are exception handling keywords in java?

1032


Explain java heap space and garbage collection?

1062


what is mutual exclusion? : Java thread

1016


Write a program to find the greatest of three numbers in java?

999


What is the final keyword?

982


How to restrict a member of a class from inheriting by its sub classes?

1341


Why for each loop is used?

1011