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 you have a constructor with no parameters?

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 *