0 votes
in JAVA by
Which interface is used to schedule a task for execution at a fixed rate in Java?

a) TimerTask

b) ScheduledExecutorService

c) ScheduledThreadPoolExecutor

d) ScheduledFuture

1 Answer

0 votes
by

Solution: b) ScheduledExecutorService

Explanation: The ScheduledExecutorService interface is used to schedule a task for execution at a fixed rate in Java.

...