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

What are the components of J2EE application?

525


Is java important for my computer?

481


What is ear file?

541


What are the components and containers in java?

504


What do you mean by the deployment descriptor?

510






What is enterprise information system resource?

548


What is the ear file?

538


What is javamail?

529


What are the components of awt in java?

500


Is java procedural or object oriented?

463


What is a web container j2ee?

492


Where can I find java developers?

516


What is single tier architecture in java?

485


What is authorization constraint?

548


What is use of final keyword in java?

503