Core Java
-
Playing with JDK 12’s Switch Expressions
In the blog post “JDK Language Feature Preview in Action: Switch Expressions,” I discussed how JEP 325 [“Switch Expressions (Preview)”]…
Read More » -
JDK Language Feature Preview in Action: Switch Expressions
JEP 12 [“Preview Language and VM Features”] is described on its main page as follows: A preview language or VM…
Read More » -
Nested classes and private methods
When you have a class inside another class they can see each others private methods. It is not well known…
Read More » -
String.valueOf(Object) versus Objects.toString(Object)
The handy method String.valueOf(Object) has been around since JDK 1.0 and is one of the JDK-provided methods that I use…
Read More » -
Embracing modular Java platform: Apache CXF on Java 10
It’s been mostly a year since Java 9 release finally delivered Project Jigsaw to the masses. It was a long,…
Read More » -
Builders and Manipulators
Here is a simple principle for naming methods in OOP, which I’m trying to follow in my code: it’s a…
Read More » -
Unit testing constraints with business input from Excel or LibreOffice
The business experts explain the business constraints to us, the developers. But how can we be sure that we understood…
Read More » -
Apache Commons ArrayUtils.toString(Object) versus JDK Arrays.toString(Object)
Apache Commons Lang provides an ArrayUtils class that includes the method toString(Object) that “Outputs an array as a String.” In…
Read More » -
JDK 11: Release Candidate Update and OpenJDK JDK 11 LTS
JDK 11 is scheduled to be released for General Availability on Tuesday, 25 September 2018. A 16 August 2018 Mark…
Read More »