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 are java annotations?
What is object-oriented paradigm?
Can an abstract class be a final class?
What are the different types of collections in java?
What is skeleton and stub?
What environment variables are required to be set on a machine in order to run Java programs?
describe method overloading
what is the difference between yielding and sleeping? : Java thread
What is collections framework?
Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?
Can a variable be local and static at the same time?
Is simpledateformat safe to use in the multithreaded program?
When do we need to use internal iteration? When do we need to use external iteration?
What is final variable?
Can we store variables in local blocks?