Java util Timer Thread addition

Timer timer = new Timer();

// scheduling the task at interval
timer.schedule(tasknew,100, 100);  

If this is added as part of a web-application at the startup, how is the task getting kicked off at the scheduled time? Is a new daemon thread process being created, solely for triggering this task?

I just want to understand if we are creating any additional thread that is responsible for this task threads?

Jon Skeet
people
quotationmark

I just wanted to understand if we are creating any additional threads that is responsible for this task threads?

Yes - from the documentation:

Corresponding to each Timer object is a single background thread that is used to execute all of the timer's tasks, sequentially.

people

See more on this question at Stackoverflow