Can we place the any object to key attribute of
HashMap<key,value>?
Answer Posted / ramarao katta
yes, we can place any object as key value but that object
must and should implement the hashcode method.
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is int argc char * argv?
What is java thread dump, how can we get java thread dump of a program?
Is java same as core java?
What are the skills required for core java?
how are methods defined?
What 5 doubled?
what is difference between equals and ==?
How do you declare a variable?
How do you sort a set in java?
What is vector capacity in java?
Is empty list java?
For class CFoo { }; what default methods will the compiler generate for you>?
What are encapsulation, inheritance and polymorphism?
Can an interface extend another interface?
What is a native method in java programming?