Home » JAVA Programming » Data Structures » Question
  1. How can we remove an object from ArrayList?
    1. delete() method
    2. remove() method
    3. using Iterator
    4. remove() method and using Iterator
    5. None of these
Correct Option: D

There are 2 ways to remove an object from ArrayList. We can use overloaded method remove(int index) or remove(Object obj). We can also use an Iterator to remove the object.



Your comments will be displayed only after manual approval.