how do you store phone numbers using java collections
Answer Posted / saikatk
Sorry,sunny i am not agree with your scenario that one
number is common for husband & wife or between friends
etc.It is not real life scenario, phone no. are always
register with single person name ,that might be possible two
or many persons have
name,if we use HashMap , the Key might be different than
name like empid or securityid or some unique parameter.
Thanks
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
What does system out println () do?
How do you define a singleton class?
What classes of exceptions may be thrown by a throw statement?
Tell me the latest versions in java related areas?
How do you check if an arraylist is not empty?
Can we have a method name same as class name in java?
How do you get length in java?
What are functions in java?
What are the ways in which a thread can enter the waiting state?
What is a data structure java?
Can we make a constructor final?
What is the access scope of a protected method?
What is this keyword used for?
What is public/private protected in java?
What is the difference between checked exception and unchecked exception?