Can you use a method as a parameter?

There’s no concept of a passing method as a parameter in Java from scratch . However, we can achieve this by using the lambda function and method reference in Java 8.

Sizin İçin Seçtik  How do you make a parameter optional in a constructor?

Leave a Reply

Your email address will not be published. Required fields are marked *

Can you use a method as a parameter?

There’s no concept of a passing method as a parameter in Java from scratch . However, we can achieve this by using the lambda function and method reference in Java 8.

Sizin İçin Seçtik  Can I use optional as parameter in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *