- What is Iterator and ListIterator in Java ?
Java Iterator allows you to easily access object stored in Collection.
List Iterator is bidirectional navigation technique.
- What is the Vector class?
- What is an Iterator interface?
- What are the main implementations of the List interface ?
The main implementations of the List interface are as follows :
ArrayList : Resizable-array implementation of the List interface.
The best all-around implementation of the List interface.
The best all-around implementation of the List interface.
Vector : Synchronized resizable-array implementation of the List interface with additional "legacy methods."
LinkedList : Doubly-linked list implementation of the List interface.
May provide better performance than the ArrayList implementation if elements are frequently inserted or deleted within the list.
Useful for queues and double-ended queues (deques).
May provide better performance than the ArrayList implementation if elements are frequently inserted or deleted within the list.
Useful for queues and double-ended queues (deques).
http://www.allapplabs.com/interview_questions/java_collection_interview_questions.htm
No comments:
Post a Comment