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 are the restrictions imposed by a Security Manager on Applets?.

2650


What does jenkins do?

970


What does it mean that strings are immutable?

1187


What is the purpose of using java.lang.class class?

1058


How to create com object in Java?

1121


difference between byte stream class and character stream class?

4603


What is class and object in java?

1063


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread

1067


Can a class be a super class and a sub-class at the same time? Give example.

1619


Can we have a method name same as class name in java?

1100


What is final variable?

995


Is alive in java?

1012


Explain the difference between map and flatmap stream operation?

1310


How do you sing an Applet ?

2506


What is return type in java?

1126