Diffrence between arraylist and hashmap

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between load() and get()?

555


What is component-managed sign-on ?

540


What should a junior java developer know?

483


What is java naming and directory service?

530


Who is java developer?

523






Is j2ee a language or framework?

482


What is Document Object Model?

565


What does the application client module contain?

502


What is meant by j2ee?

503


Which edition of java is used for web application?

481


What is java transaction api (jta)?

531


On which platform j2ee is based?

532


What is a j2ee container?

585


How do you run a java program?

471


Explain jta, jndi, and jms.

629