Which method is used to remove an element from an ArrayList in Java?
a) remove()
b) removeFirst()
c) removeLast()
d) pop()
Answer: a) remove()
Explanation: The remove() method is used to remove an element from an ArrayList in Java.