Diffrence between arraylist and hashmap

Answer Posted / srikanth

Arraylist is an ordered collection.of objects
they store their elements in index.rotation
Duplicate values are also allowed.
they show their elements in order ie... added order

But in hashmap is also ordered collection but don't contain
duplicate values.
Hashmap use key value for any object access.
hashmap allow null values

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is enterprise information system?

545


when i m calling java for web browser . so browser it's not support. show error in browser: internal error occur. java.lang.NoClassDefFoundError. will you give me solution why it's not starting browser.? is there any consult with .net framework2.0?

1557


What is j2ee api?

516


What is container-managed transaction?

577


What is jaap?

545






What is javabeans component?

523


What is data?

543


What are the components of j2ee?

451


What is the latest technology used in java?

503


whay java does not support bass by reference

2352


What is java ee technologies?

464


What is frame in java?

501


Is java an assembly language?

477


What is jlayeredpane java?

471


What is a j2ee container?

577