Category Java

Java Scripting (Scripting in Java)

No this isn’t about JavaScript. This is a new feature introduced in Java 11, opening the possibility of using Java as a scripting language. The definition of Scripting can be somewhat a woolly one, but normally scripting languages tend to…

Java Records

A couple of days ago Java 16 was officially released and the latest incarnation promoted some preview features to general availability, as well as including a number of JVM updates and improvements. The one new feature that I really like…

Java 14 Switch Expressions

Java 14 introduces switch expressions to go along side the familiar switch statement. The new switch is an expression and as such returns a value Colon replaced with ->, using this syntax, there is no need for the break keyword,…

Forget Code Coverage

Forget chasing code coverage, in my view it is a somewhat pointless statistic and chasing it can (in some cases) lead to poor quality tests and a lot of wasted time. It can also lead to a false sense of…