Spring Boot - Async Processing
Which of the following is the correct way to annotate a method for asynchronous execution in Spring Boot?
public void sendEmail() { /* code */ }Which of the following is the correct way to annotate a method for asynchronous execution in Spring Boot?
public void sendEmail() { /* code */ }@Async public void sendEmail() is correct. @Async() public void sendEmail { /* code */ }, public @Async void sendEmail() { /* code */ } and D are invalid syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions