Java interview questions: – What are the differences between Enumeration, ArrayList, Hashtable, Collections and Collection?

Following is the differences between Enumeration, ArrayList, Hashtable, Collections and Collection for the Java interview questions asked by the interviewer.

  • Enumeration: It is series of elements. It can be use to enumerate through the elements of a vector, keys or values of a hashtable. Used for read only operations on collections.
  •  ArrayList: It is re-sizable array implementation. Implements List interface It permits all elements, including null. It is not thread -safe.
  •  Hashtable: It maps key to value. You can use non-null value for key or value. It is part of group Map in collection.
  •  Collections: It implements Polymorphic algorithms which operate on collections.
  •  Collection: It is the root interface in the collection hierarchy.

See the following video which will show us practically Inheritance between beans and Spring: –

Visit for more  Java interview questions

Regards,

Also visit for more author’s blog on Java interview questions

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s