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

Can we place the any object to key attribute of
HashMap<key,value>?

Answer Posted / patil abhijeet

Hi Ramarao,
Its not necessary to override hashCode() since hashcode is
default generated for every object. Please try my example n
check it by urself

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an object class?

1022


What is a final class in java?

1010


which pattern is default in scanner package?

2228


Do you need to import math in java?

997


What is stream api in java8?

1165


What is better- service oriented or batch oriented solutions?

2206


What is java dot?

934


What is the use of default method in interface in java? Explain

997


What is remote method invocation (rmi)?

1058


What's the difference between int and integer in java?

1149


What is an immutable object? How do you create one in java?

1065


Can a class be private in java?

991


What is static import?

1157


What is byte [] in java?

1011


Compare java and python.

979