how do you store phone numbers using java collections

Answer Posted / ankur dhoot

Shahnawaz Sheikh---sorry to say but don't you think that ur
ans is having some flaw...u r correct that phone no can be
store in HasMap but u have taken name as key but name can be
repeated while ph no is unique so don't u think that phone
no should be key in upper hash map.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a treeset class?

562


How do you create an array in java?

536


Can we assign the reference to this variable?

549


Is java an ide?

529


What is the base class of all classes?

574






Explain the concept of hashtables?

621


what is difference between equals and ==?

592


What is an 8 bit word?

598


What is a linkedhashmap java?

557


What’s the difference between unit, integration and functional testing?

618


What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?

1944


What is a wrapper method?

539


What is module with example?

516


What is the purpose of the file class in java programming?

534


What are the advantages of autoboxing?

540