Complete future method with return

Report a typo

Complete the future method so that it returns a String.

Java
@Async
private ____________ generateWelcome() {
    return CompletableFuture.completedFuture("Welcome to the app!");
}
Kotlin
@Async
private fun generateWelcome(): ____________ {
    return CompletableFuture.completedFuture("Welcome to the app!")
}
Select one option from the list
___

Create a free account to access the full topic