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 japplet in java?

669


What is jaap?

709


Why java is called portable language?

656


What is java mobile?

647


What is the difference between java and core java?

668






Is java important for my computer?

639


What type of code is java?

665


What are the most important topics in java?

657


What do you understand by business logic?

663


What is actionform?

705


What is declarative security ?

720


Is string an object in java?

595


What is javabeans component?

684


What is java advanced?

649


What is Connector architecture?

693