Linkedin | SWE | Concurrency | April 2022
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2022-05-19Added By Anonymous
Source: Link
Implement following method of ScheduledExecutorService interface in Java
1public class ScheduledExecutorService {
2
3 /**
4 * Creates and executes a one-shot action that becomes enabled after the given delay.
5 */
6 public void schedule(Runnable command, long delay, TimeUnit unit) {
7 }
8
9}