🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Scheduling and Async: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. A job has fixedDelay = 10 seconds and each run takes 4 seconds. How far apart are the START times of two runs?
  2. Q2. With fixedRate = 10 seconds, a run unexpectedly takes 15 seconds. What happens to the next run?
  3. Q3. What does the Spring cron expression 0 30 18 SAT mean?
  4. Q4. Why should a business-time cron job set zone = "Asia/Kolkata"?
  5. Q5. What does this print? (code)
  6. Q6. An @Async method is private and called from another method of the same bean. What happens?
  7. Q7. What does this print? (code)
  8. Q8. What happens to an exception thrown inside a void @Async method?
  9. Q9. An app with a @Scheduled reminder job runs on 3 servers. What is the problem?
  10. Q10. Why can a slow scheduled job delay a different scheduled job by default?