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 the need of transient variables in Java ?
Is simpledateformat safe to use in the multithreaded program?
Should a main method be compulsorily declared in all java classes?
What is the purpose of javac exe?
What is the purpose of the file class in java programming?
What is a type parameter in java?
Can you declare the main method as final?
What is the difference between throw and throws in java?
Difference difference paint() and paintcomponent()?
What are untrusted applets?
What is string args [] in java?
Can a class extend more than one class?
What is a stack class in java ?
How can u increase the heap size in the memory?
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?