Java Interview Questions & Answers part 9

0
384
Q: – What are the main Implementations of the Map interface ?

HashMap
HashTable
TreeMap
EnumMap

Q: – What are the advantages of ArrayList over arrays ?

It can grow dynamically
It provides more powerful insertion and search mechanisms than arrays.

Q: – What is the List interface?

The List interface provides support for ordered collections of objects. Lists may contain duplicate elements.

Q: – What is a Map ?

A map is an object that stores associations between keys and values (key/value pairs).

Q: – How is ListIterator?

ListIterator is just like Iterator, except it allows us to access the collection in either the forward or backward direction and lets us modify an element

Q: – What is an EnumSet ?

An EnumSet is a specialized set for use with enum types, all of the elements in the EnumSet type that is specified, explicitly or implicitly, when the set is created.

Submitted By:-Ankur Jain           Email-ID: – ankurjain548@gmail.com

SHARE

LEAVE A REPLY