Core Java
-
Java 8: Declare Private and Protected Methods in Interfaces
When Java 8 was introduced, we could use default methods in interfaces. The main driver for this feature was to…
Read More » -
Put Your Java 8 Method References to Work
Method References As we all know by now, we can use Method References, like String::isEmpty, in Java 8 to reference…
Read More » -
Verifying DateTime and Date with Hamcrest
Since I started diving into automated testing and practicing TDD, verification of date values was pain. Luckily there is nice…
Read More » -
Improve Your JUnit Experience with this Annotation
JUnit is probably part of 90% of all Java projects. And the exciting thing is, we’ll soon have JUnit 5…
Read More » -
Looking at DiagnosticCommandMBean in JConsole and VisualVM
I’ve used JConsole for many years as a suitable generic JMX client. This tool is generally available with the Oracle…
Read More » -
Implementing an annotation interface
Using annotation is every day task for a Java developer. If nothing else simple @Override annotation should ring the bell.…
Read More » -
Printing arrays by hacking the JVM
Overview One the most common gotchas in Java, is knowing how to print arrays. If an answer on how to…
Read More » -
JUnit 5 – Basics
Last week we’ve set up JUnit 5 to be able to write tests. So let’s do it! Overview This post…
Read More » -
Java compile in Java
In a previous post I wrote about how to generate a proxy during run-time and we got as far as…
Read More »