Diffrence between arraylist and hashmap
Answers were Sorted based on User's Feedback
Answer / srikanth
arraylist is used for storing collection of elements with
duplicates
they can store only keys
it is extending list interface
hashmap
--------
hashmap is used for storing collection of elements with key
value pair without duplicates in unordered way
it is extending map interface
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / 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 |
Answer / 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 |
what is the difference between application server and web server?
What are the components of j2ee?
Why tomcat is used in java?
What is main method in java?
I’m new to WebLogic Does anyone knows how to Deploy Application using
Why is java important for internet?
On which platform j2ee is based?
What is a java application client?
Why is java robust?
What is jlayeredpane java?
What is j2ee explain the component of j2ee application?
Name the Implicit variable which is used to access other implicit objectes present in JSP.