Topics

Leave a Reply

9 Comments on "Java 8 Lambda Basics 9 – Lambdas vs Interface Implementations"

Notify of
avatar

jonassx100
Guest
jonassx100
28 days 16 hours ago

isnt the proxy class has been made at line 14 ,?,,, Class c = lambdaGreeting.getClass() ; .. System.out.println(c.getName());

Meher Babu
Guest
Meher Babu
2 months 9 days ago

Made my life easier in understanding Lambda Expressions. Thanks a lot.

RichardJinny
Guest
RichardJinny
3 months 6 days ago

Very good. Sofar, ALL Java Brains' tutorials were excellent!

Pankaj Singh
Guest
Pankaj Singh
3 months 10 days ago

I think in example you should choose different data to print so that…it can clearly differentiate the usage… you have used same data to print which doesn't give clarity… Just a suggestion…

Shobana K.M
Guest
Shobana K.M
4 months 26 days ago

Greeting greeting = new Greeting(){ } // this is an anonymous inner class… Does it also mean that we creating object for interface?

jonassx100
Guest
jonassx100
28 days 16 hours ago

you can never create object for interface …. its the object of proxy class that is made at runtime and that proxy class is implementing ur interface .. U CAN NEVER EVER CREATE OBJECT OF INTERFACE by any mean

Rajasekar Muthusamy
Guest
Rajasekar Muthusamy
3 months 18 days ago

Yes. It will create an object of the anonymous inner classes.

Hemanth SP
Guest
Hemanth SP
7 months 1 day ago

i think greet method not required in terms of AINNERCLASS and LAMMADA cases?

Arpit Parasana
Guest
Arpit Parasana
7 months 12 days ago

You are really good in explaining things!

wpDiscuz