Android Application Development (AND-401) — Question 21

Which of the following is a Java call-back method invoked when a view is clicked?

Answer options

Correct answer: D

Explanation

The correct answer is D, OnClickListener, as it is specifically designed to handle click events in Java. Options A, B, and C do not exist as standard click handlers in Java, making them incorrect choices.