timer && timerTask /duo/@@

Before looking at ch11-ex1 java source codes, PONDER these issues:

wait() is the key method beneath the Timer system. Understand wait()
and u understand much of Timer.

A: container of the schedule() method

A: the runnable container of the run() method

Q: which class maintains the schedule and the job @@ see Timer api

Q: which thread executes the jobs in queue@@ timerTask, being a
runnable thread@@. See Timer api

Q: how do u list the jobs in queue@@

Q: basic functionalities embodied by timerTask@@
run() containing the actions to take.
the schedule, perhaps a specification of the next kickoff time.

Q: which class is runnable@@ Which class has a run() method@@

Q: which class has methods to SET the number of seconds for delay@@

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s