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 best practices should you follow while writing multithreaded code in java?
What is keyword auto for?
What is keyword in oop?
What is difference between static class and singleton pattern?
What is a string token?
What is return null in java?
Explain constructors and types of constructors in java.
What is an example of a boolean?
What is the role of garbage collector in java?
What is the numeric promotion?
Explain about features of local inner class?
What is connection class in java?
Does a function need a return?
Explain purpose of sleep() method in java?
What is meant by inheritance and what are its advantages?