Java 8
-
Java核心
Java 8特性指南 – 终极手册 (PDF下载)
编者按:距离Java 8的发布已经有段时间了,就目前看来它的确是一个非常重要的版本。我们之前已经在JavaCodeGeeks发布了一系列专题文章,如玩转Java 8-Lambda表达式和并发,Java 8日期/时间API入门:LocalDateTime 以及 JDK8时代的抽象类vs.接口。同时我们也从其它来源处引用了15个必读的Java 8教程。当然,我们也对它的一些短板进行了验证,如Java 8的暗面。为了读者们更好的阅读体验,现在是时候整合所有Java 8的主要特性于一处了。一起来享受它吧! 目录 1. 简介 2. Java语言的新特性 2.1. Lambda表达式和函数式接口 2.2. 接口的默认方法和静态方法 2.3. 方法引用…
Read More » -
Core Java
Default methods and multiple inheritance
Recently Lukas JOOQ Eder posted and article about nested classes and their use. This is an interesting topic and his…
Read More » -
Core Java
Java8 Multi-threading ForkJoinPool: Dealing with exceptions
One of the main motivations behind the introduction of Java8 lambdas was the ability to be able to use multicores…
Read More » -
Core Java
Java 8 Optional is not just for replacing a null value
Overview In Java 8, you can return an Optional instead of return null; as you might do in Java 7.…
Read More » -
Core Java
Everything You Need To Know About Default Methods
So, default methods… yesterday’s news, right? Yes but after a year of use, a lot of facts accumulated and I…
Read More » -
Core Java
Reason for Slower Reading of Large Lines in JDK 7 and JDK 8
I earlier posted the blog post Reading Large Lines Slower in JDK 7 and JDK 8 and there were some…
Read More » -
Core Java
Java8 Lambdas: Sorting Performance Pitfall EXPLAINED
Written in collaboration with Peter Lawrey. A few days ago I raised a serious problem with the performance of sorting…
Read More » -
Core Java
How to Translate SQL GROUP BY and Aggregations to Java 8
I couldn’t resist. I have read this question by Hugo Prudente on Stack Overflow. And I knew there had to…
Read More » -
Core Java
The Decorator Pattern With Java 8
In a recent post I described how the decorator pattern saved my day. I gave a small code snippet which…
Read More »