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 ejb module?

507


What is japplet in java?

510


What is application client module?

533


What will happen when you compile and run the following code?

515


i want test pattern of zylog company and some examples also

2294






How do you make a class immutable in java?

465


What is application component provider?

549


What are the topics in j2ee?

507


What are the main components of the j2ee application?

477


Why java is called robust and secure?

468


Who is java developer?

516


Why is j2ee needed?

488


What is a java developer?

468


What is front end technology in java?

466


Is java procedural or object oriented?

459