java1.8 new features

Interface extension

Execution result

this is demo 'static' 
this is demo 'default'

lambda

*interface

interface IDemoLambda {
	void print();
}

// Realization of inner class func(new IDemoLambda() {

			@Override
			public void print() {
				System.out.println("before java 1.8 innerclass");
			}
		});

// Realization of Lambda func1(() -> { System.out.println("after java 1.8 lambda"); }); } }

Source code

Recommended Posts

java1.8 new features
Java features
Java features
New features from Java7 to Java8
[Java] About Java 12 features
Java 9 new features and sample code
About Java features
Predicted Features of Java
Java 12 new feature summary
Java 13 new feature summary
What's new in Java 8
Java 10 new feature summary
[Java] Three features of Java
Java 14 new feature summary
What's new in Java 9,10,11
Pleiades Eclipse 2020-03 release ~ Java 14 Let's try new features!
I touched on the new features of Java 15
Java version 8 and later features
[Java] New Thread generation method (2)
Java
PrimeFaces 6.0.x New Features Summary
Java
[Java] New Thread generation method (1)
Catch up on new features from Java 7 to Java 9 at once
Java 14 new features that could be used to write code
New grammar for Java 12 Switch statements
Java EE 8 (Jakarta EE 8) New feature summary
Try Eclipse 4.7 Oxygen New 30+ / Java 10 var!
Java learning (0)
[Java] array
Java protected
[Java] Module
Java array
Studying Java ―― 9
Java scratch scratch
Java tips, tips
Java methods
Java method
Java array
[Java] ArrayDeque
java (method)
Java Day 2018
Java string
java (array)
Java static
Java serialization
java beginner 4
JAVA paid
Studying Java ―― 4
Java (set)
java shellsort
[Java] compareTo
Studying Java -5
java reflexes
java (interface)
☾ Java / Collection
Java array
Studying Java ―― 1
[Java] Array
About the new Java release model @ Seki Java (2018/07/20)
[Java] Polymorphism