Given a Timer object named timer and a TimerTask object named task, which of the following statements runs the task immediately and again every minute?

Given a Timer object named timer and a TimerTask object named task, which of the following statements runs the task immediately and again every minute?









a. timer.run(task, 60000);
b. timer.run(task, 0, 60000);
c. timer.schedule(task, 60000);
d. timer.schedule(task, 0, 60000);











Answer: D


Android

Learn More Multiple Choice Question :