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
What is string in java? String is a data type?
When do we use synchronized blocks and advantages of using synchronized blocks?
Define max and min heap, also the search time of heap.
How can you handle java exceptions?
List types of storage classes in java?
What package is math in java?
What is re-factoring in software?
What is the difference between choice and list?
Is hashset sorted in java?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
What is square root in java?
What is the maximum size of a string in java?
Why are arrays useful in java?
Can I learn java without any programming experience?
What is the synonym of framework?