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 are the restrictions imposed by a Security Manager on Applets?.
What does jenkins do?
What does it mean that strings are immutable?
What is the purpose of using java.lang.class class?
How to create com object in Java?
difference between byte stream class and character stream class?
What is class and object in java?
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
Can a class be a super class and a sub-class at the same time? Give example.
Can we have a method name same as class name in java?
What is final variable?
Is alive in java?
Explain the difference between map and flatmap stream operation?
How do you sing an Applet ?
What is return type in java?