摘要: 作用:在编译过程中,校验该接口只有一个抽象方法; 解释:除了唯一的抽象方法外,可以包含已经有实现的方法(包括静态方法); 使用:可以使用Lambda表达式来表示该接口的一个实现: @FunctionalInterface interface GreetingService { void sayMes 阅读全文
posted @ 2022-08-19 15:23 lq-12040 阅读(34) 评论(0) 推荐(0)
摘要: 参考:https://juejin.cn/post/6844904073725116430 阅读全文
posted @ 2022-08-19 15:08 lq-12040 阅读(27) 评论(0) 推荐(0)
摘要: 参考:https://www.cnblogs.com/chiangchou/p/idea-debug.html 阅读全文
posted @ 2022-08-19 14:06 lq-12040 阅读(23) 评论(0) 推荐(0)