devxlogo

Calling Java Methods Using Lambda Expressions

Calling Java Methods Using Lambda Expressions

To call Java methods using Lambda expressions you can use:

- Car::makeCar //Static method of a class- Car::drive // Method of an instance- Car::new //Constructor of a class- Car::drive // Instance method, but referenced without using an actual instance.

devx-admin

Share the Post: