Add java8-features module: runnable demos and captured output for the ankurm.com java8-features article

This commit is contained in:
2026-10-20 17:13:58 +00:00
parent d565be93c6
commit 77c782abbf
18 changed files with 250 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
$ javac src/LambdaDemo.java && java LambdaDemo (1.8.0_504)
anonymous class : [Zoya, Meera, Ankur, Bhaskar]
lambda : [Ankur, Bhaskar, Meera, Zoya]
method reference: [Ankur, Bhaskar, Meera, Zoya]
captured base : 15
lambda this : LambdaDemo
anonymous this : LambdaDemo$2