Core Java
-
Java 8: Compiling Lambda Expressions in The New Nashorn JS Engine
In a recent post I took a look at how Java 8 and Scala implemented Lambda expressions. As we know…
Read More » -
Serializing Java Objects with Non-Serializable Attributes
There are multiple reasons one might want to use custom serialization instead of relying on Java’s default serialization. One of…
Read More » -
Three Reasons Why I Like the Builder Pattern
There are three ways to create new objects in Java programming language: The telescoping constructor (anti)pattern The Javabeans pattern The…
Read More » -
Testing for expected exceptions in JUnit
Unit tests are used to verify that a piece of code operates as the developer expects it to. Sometimes, that…
Read More » -
Java 8 Friday Goodies: Lambdas and SQL
At Data Geekery, we love Java. And as we’re really into jOOQ’s fluent API and query DSL, we’re absolutely thrilled…
Read More » -
Java 8 Type Annotations
Lambda expressions are by far the most discussed and promoted feature of Java 8. While I agree that Lambdas are…
Read More » -
Mock final class
Foreword If you already read some other blog post about unusual mocking, you can skip prelude via this link. I…
Read More » -
Java: Handling a RuntimeException in a Runnable
At the end of last year I was playing around with running scheduled tasks to monitor a Neo4j cluster and…
Read More » -
Building and Running Java 8 Support
The Eclipse support for Java 8 is not yet available for download. If you want to play with it, you’ve…
Read More »