Answer Posted / siva thimmannagari
everyone knows that,the objects in the HASHMAP will be
stored in the form of Key,Value pair..
Here key is the hashcode
String s1="shiva";
if u want to know the hashcode for s1--simply type
s1.hashcode();this will give the hashcode which will be
used as a KEY
| Is This Answer Correct ? | 7 Yes | 13 No |
Post New Answer View All Answers
what is optional in java 8?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
Why declare Main() inside the class in java ?
how come we know the object is no more used in the class?
What is method reference?
How does thread synchronization occurs inside a monitor?
What is meant by flickering?
Why pointers are not used in java?
Explain notifyall() method of object class ?
Why is whitespace important?
How do you do math powers in java?
Why arraylist is used in java?
What is final int?
Is 0 an irrational number?
Are arrays passed by reference in java?