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
Why singleton is not thread safe?
What is string buffer?
What is an immutable object? How do you create one in java?
Is break statement can be used as labels in java?
What is off heap memory?
What is difference between string and stringbuffer?
What is a treeset in java?
What is the protected method modifier?
Does A Class Inherit The Constructors Of Its Superclass?
What is the difference between preemptive scheduling and time slicing?
What do you understand by an io stream?
Is it possible for a yielded thread to get chance for its execution again?
Explain the private protected method modifier?
Is it possible to override private or static method in java?
Is static a singleton?