Solved

One of the Schedule Methods of the Timer Task Has

Question 115

Essay

One of the schedule methods of the Timer task has this API:
void schedule( TimerTask task, long delay, long period )
We have coded a class named MyTask that extends TimerTask.
Write three (or fewer) lines of code so that we schedule a MyTask to be executed every second starting in 5 seconds.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions