Core Java
-
The Serialization Proxy Pattern
In my last post, I talked about serialization in general. This one is much more focused and presents a single…
Read More » -
Calling grandparent methods in Java: you can not
In the article Fine points of protection I detailed how “protected” extends the “package private” access. There I wrote: What…
Read More » -
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 » -
How I’d Like Java To Be
I like Java. I enjoy programming in Java. But after using Python for a while, there are several things I…
Read More » -
Testing System.in and System.out with system-rules
Writing unit tests is an integral part of software development. One problem you have to solve when your class under…
Read More » -
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 » -
Separating Integration Tests from Unit Tests Using Maven Failsafe & JUnit @Category
Why Unit Tests Should Run Separately From Integration Tests TDD at the Unit Testing level is fairly straight-forward, since classes in unit…
Read More » -
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 » -
Fork/Join Framework vs. Parallel Streams vs. ExecutorService: The Ultimate Fork/Join Benchmark
How does the Fork/Join framework act under different configurations? Just like the upcoming episode of Star Wars, there has been…
Read More »