What is the type of () -> System.out.println("Hello")?

Last Updated :
Discuss
Comments

What is the type of () -> System.out.println("Hello")?

Supplier

Runnable

Callable

Function

Share your thoughts in the comments