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
Can we have more than one package statement in source file ?
What is mysql driver class name?
What is constructor and virtual function? Can we call a virtual function in a constructor?
What is the primitive type short?
What is the maximum size of arraylist in java?
What about features of local inner class?
What is the difference between I ++ and ++ I in java?
What is the scope or life time of instance variables?
What are the important methods of java exception class?
What is pre increment and post increment in java?
How do you reverse a word in java?
What is anagram in java?
Why Java doesn’t support multiple inheritance?
Will set allow duplicates in java?
What is java util hashmap?