Missing annotation

Report a typo

What annotation is missing in the component below? Write its name with the @ sign (e. g. @Annotation).

Java
@Component
//annotation missed
public class AsyncComponent {
    
    @Async
    public void asyncMethod() throws InterruptedException {
        System.out.println("Hello world!");
    }   
}
Kotlin
@Component 
//annotation missed
class AsyncComponent {
    
    @Async
    fun asyncMethod() {
        println("Hello world!")
    }
}
Enter a short text
___

Create a free account to access the full topic