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 an object class?
What is a final class in java?
which pattern is default in scanner package?
Do you need to import math in java?
What is stream api in java8?
What is better- service oriented or batch oriented solutions?
What is java dot?
What is the use of default method in interface in java? Explain
What is remote method invocation (rmi)?
What's the difference between int and integer in java?
What is an immutable object? How do you create one in java?
Can a class be private in java?
What is static import?
What is byte [] in java?
Compare java and python.