Diffrence between arraylist and hashmap

Answer Posted / billuyadav208

Arraylist is an ordered collection.
User access elements by their interger index.
Duplicate values are also allowed.
But in hashmap is also ordered collection but don't contain
duplicate values.
Hashmap use key value for any object access.

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is class a data type in java?

700


Why is java considered dynamic?

770


What is Connector architecture?

718


What every java developer should know?

654


What is setbounds in java?

731


Which edition of java is used for developing web application?

619


What does web module contain?

718


What is ebxml?

710


What is difference between java and core?

659


Is downloading java safe?

634


What is java ee used for?

630


What is group?

774


What are j2ee technologies?

663


Why is java called object oriented?

695


What is a java ee container?

664