Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/java/new-features/java8-common-new-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public interface Runnable{}

```java
@FunctionalInterface
public interface LambdaFunctionalInterface {
public interface LambdaInterface {
void f();
}
//使用
Expand Down Expand Up @@ -221,7 +221,7 @@ public class LambdaClassSuper {
}
}

public class LambdaClass {
public class LambdaClass extends LambdaClassSuper {
public static LambdaInterface staticF() {
return null;
}
Expand All @@ -243,6 +243,7 @@ public class LambdaClass {

//4. 构造方法调用
LambdaInterface tt = LambdaClassSuper::new;
}
}
```

Expand Down