Add,Remove,Update – ArrayList,LinkedList,Vector Mock Interview Questions



List is a type of Collection mainly useful to store the Objects which are duplicates as well. Its available in the package java.util.List. The behavior of the List is implemented by the java classes

  • ArrayList
  • LinkedList
  • Vector

Java Mock Interview Questions about java.util.List as follows:

1. Adding an new item to the List
2. Adding an new item first to the List.
3. Adding an item from in the middle of the List.

4. Remove an item from the List.
5. Remove an item from the List at particular index.
6. Update an item from the List.

Conclusion:

Addition,Deletion and Updating the items of List is achieved using the methods available in the java.util.List package.




Leave a Reply

Your email address will not be published. Required fields are marked *