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

How do you run a java program?

461


How many types of constructors are there in java?

453


What is the latest framework in java?

472


What is external subset?

540


what is direct link to download swing ebook,applet,ejb,core java

2067






What is setbounds in java?

495


What is core java and j2ee?

504


What is webservices in java?

476


Why java is not 100% object oriented language?

493


What id url?

518


What are types of j2ee clients?

500


What are defined as web components?

506


What is the use of method saveorupdate()?

547


What are the component of java?

459


What are the main components of multi-tier architecture?

495