Invoking ___ removes all elements in an ArrayList x.

Invoking _________ removes all elements in an ArrayList x.


A. x.remove()
B. x.clean()
C. x.delete()
D. x.empty()
E. x.clear()

The correct answer is E


Java

Learn More Multiple Choice Question :