Diffrence between arraylist and hashmap

Answer Posted / srikanth

arraylist is used for storing collection of elements with
duplicates
they can store only keys
it is extending list interface

hashmap
--------
hashmap is used for storing collection of elements with key
value pair without duplicates in unordered way

it is extending map interface

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java still slow?

670


What is webservices in java?

658


What are the tools in java?

615


What is jetty in java?

670


what is meant by proxy server

4450






What are the components of awt in java?

673


What is component-managed sign-on ?

673


How do you make a class immutable in java?

612


What does java ee stand for?

614


What is build tool in java?

657


What is devops in java?

700


What is java api for xml processing (jaxp)?

716


Why java is called portable language?

656


J2ee is a container centric architecture. Explain.

664


Which java ide is best?

675