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

what is static import in java? Explain

568


What is consumer interface?

564


What java is used for?

669


Which class is the superclass for every class in java programming?

585


What is thread pool in java with example?

553






What are the different tags provided in jstl?

561


Can a class be private in java?

555


What is bytecode verifier?

514


What is mean by collections in java?

571


What are parsing rules?

511


What is tcp and udp?

612


What mechanism does java use for memory management?

504


Can I override protected method in java?

609


What is java virtual machine? Explain

573


What is the difference between sleep and wait in java?

521