|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/java8features/
课程评论:没有评论
课程名称:Java 8 新特性 课程概述:Oracle 的 Java 8 发布标志着全球最受欢迎的开发平台历史上的一个重要时刻。这一版本不仅在 Java 编程范式上进行了显著改进,还对 JVM、Java 语言和库进行了协调更新。这次更新包含了许多新特性,提升了易用性、生产力和安全性,同时改善了系统整体性能。 在 Java 8 中,引入了一种新的概念——函数式接口。函数式接口是指恰好有一个抽象方法的接口。我们并不需要使用 @FunctionalInterface 注解来指定一个接口为函数式接口,但使用该注解可以防止意外添加额外的抽象方法。与 @Override 注解类似,推荐使用它。java.lang.Runnable 是一个优秀的函数式接口的示例,因为它只有一个抽象方法 run()。函数式接口的一个引人注目的特性是可以通过 Lambda 表达式创建对象。 本课程详细介绍了 Java 8 的所有特性,提供了丰富的示例。完成课程后,您将对 Java 8 的特性有很扎实的知识理解。 教程包含以下主题: 1. Lambda 表达式 2. 函数式接口 3. 接口中的默认方法 4. 接口中的静态方法 5. Predicate 6. Function 7. Consumer 8. Supplier 9. 方法引用与构造函数引用(使用双冒号 (::) 操作符) 10. Stream API 11. CompletableFuture 12. 日期与时间 API 通过本课程的学习,您将全面掌握 Java 8 的新特性,提升您的编程技能。
Oracle's Java 8 release was a watershed moment in the history of the world's most popular development platform. In addition to a significant improvement to the Java programming paradigm as a whole, the JVM, Java language, and libraries were all updated in a coordinated manner. Many new features were included in this update, including enhanced simplicity of use, increased productivity and security, and overall better system performance.In Java 8, a new notion called functional interfaces was introduced. A Functional Interface is an interface that has exactly one abstract method. To designate an interface as a Functional Interface, we don't need to use the @FunctionalInterface annotation.The @FunctionalInterface annotation prevents abstract methods from being accidentally added to functional interfaces. It's similar to a @Override annotation, and it's recommended that you use it. java.lang. Runnable is a fantastic example of a functional interface since it has one abstract method, run ().One of the most appealing features of the functional interface is creating objects using lambda expressions.In this tutorial I have covered all features of Java8 in very details with lot of example. I am sure once you finish this course you will have very sound knowledge of java8 featuresThese are the topics are included in this tutorial.1. Lambda Expressions2. Functional Interfaces3. Default methods in Interface4. Static Methods in Interfaces.5. Predicate6. Function7. Consumer8. Supplier9. Method Reference & Constructor Reference by Double Colon(::) Operator.10. Stream API11.CompletableFuture12. Date & Time API