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 difference between module and function?
What is the size of int?
How many types of array are there?
What does %d do in java?
What is boolean law?
What is sortedmap in java?
Is there a sort function in java?
Can a class be private?
What means public static?
How many types of constructors are used in java?
Can we compare two strings in java?
What is floor math?
Explain about fail fast iterators in java?
Is array serializable java?
How are the elements of a gridbaglayout organized in java programming?