Core Java
-
Java’s Volatile Modifier
A while ago I wrote a Java servlet Filter that loads configuration in its init function (based on a parameter…
Read More » -
Default Methods: Java 8’s Unsung Heros
A few weeks ago I wrote a blog saying that developers learn new languages because they’re cool. I still stand…
Read More » -
Using IntelliJ bookmarks
This is a quick post about IntelliJ’s nice bookmark feature. IntelliJ gives you the option to bookmark single lines of…
Read More » -
Getting A List of Available Cryptographic Algorithms
How do you learn what cryptographic algorithms are available to you? The Java spec names several required ciphers, digests, etc.,…
Read More » -
The 10 Most Annoying Things Coming Back to Java After Some Days of Scala
So, I’m experimenting with Scala because I want to write a parser, and the Scala Parsers API seems like a…
Read More » -
Why I distrust wildcards and why we need them anyway
In any programming language that combines subtype polymorphism (object orientation) with parametric polymorphism (generics), the question ofvariance arises. Suppose I have…
Read More » -
Testing code for excessively large inputs
When writing unit tests we mostly focus on business correctness. We do our best to exercise happy path and all…
Read More » -
How to Load Resources from Classpath in Java with Example
Classpath in Java is not only used to load .class files, but also can be used to load resources e.g.…
Read More » -
The lepidopterist’s curse: Playing with java.time
Pop quiz: What will be the output of this little program? …
Read More »