Home » JAVA Programming » Collections » Question
  1. Which of these methods deletes all the elements from invoking collection?
    1. refresh()
    2. delete()
    3. reset()
    4. clear()
    5. None of these
Correct Option: D

clear() method removes all the elements from invoking collection.



Your comments will be displayed only after manual approval.