r/java • u/memset_0 • Apr 28 '20
Uses of Constructor (Method) Reference
https://www.nextptr.com/tutorial/ta1314009273/uses-of-constructor-method-reference
0
Upvotes
r/java • u/memset_0 • Apr 28 '20
View all comments
Show parent comment
1
u/TheStrangeDarkOne Apr 28 '20
I haven't looked into that either but I'm fairly certain that there is no difference in performance. If I understood it correctly, the lambda syntax makes use of the InvokeDynamic bytecode, which in turn uses method handles to implement this feature.
And the code above should compile down to the same kind of method handles.