how do you store phone numbers using java collections
Answer Posted / ankur dhoot
Shahnawaz Sheikh---sorry to say but don't you think that ur
ans is having some flaw...u r correct that phone no can be
store in HasMap but u have taken name as key but name can be
repeated while ph no is unique so don't u think that phone
no should be key in upper hash map.
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
What is a JAR file?
Explain the features of java?
What is a boolean field?
How do you control extraneous variables?
What is the final method?
What is the mapping mechanism used by java to identify IDL language?
What is an abstract method in java programming?
What is float in java?
What is the purpose of tostring() method in java?
Can a main method be overloaded?
What is meant by memory leak?
What are the advantages of encapsulation in java?
How can you share data between two thread in Java?
Difference between association, composition and aggregation?
What are the major advantages of internal iteration over external iteration?