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


Please Help Members By Posting Answers For Below Questions

Can we have more than one package statement in source file ?

586


What is mysql driver class name?

550


What is constructor and virtual function? Can we call a virtual function in a constructor?

676


What is the primitive type short?

573


What is the maximum size of arraylist in java?

492






What about features of local inner class?

616


What is the difference between I ++ and ++ I in java?

505


What is the scope or life time of instance variables?

654


What are the important methods of java exception class?

569


What is pre increment and post increment in java?

495


How do you reverse a word in java?

525


What is anagram in java?

513


Why Java doesn’t support multiple inheritance?

631


Will set allow duplicates in java?

497


What is java util hashmap?

517