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