Core Java
-
JUnit test method ordering
Junit until version 4.10 uses the order of test methods in a test class as returned by the reflection API…
Read More » -
Inferred exceptions in Java
It’s always nice to borrow and steal concepts and ideas from other languages. Scala’s Option is one idea I really…
Read More » -
Executing a Command Line Executable From Java
In this post we’ll deal with a common need for Java developers. Execute and manage an external process from within…
Read More » -
Java Deadlock Example – How to analyze deadlock situation
Deadlock is a programming situation where two or more threads are blocked forever, this situation arises with at least two…
Read More » -
Java – The 2012 Review and Future Predictions
This post will focus on the events big and small that occurred in 2012 and also take a look at…
Read More » -
Local variables inside a loop and performance
Overview Sometimes a question comes up about how much work allocating a new local variable takes. My feeling has always…
Read More » -
Weak, Weaker, Weakest, Harnessing The Garbage Collector With Specialist References
When and when not to use specialist references in Java Weak, Soft and Phantom references are dangerous and powerful. If…
Read More » -
Using Apache Commons Functor functional interfaces with Java 8 lambdas
Apache Commons Functor (hereon [functor]) is an Apache Commons component that provides a functional programming API and several patterns implemented…
Read More » -
Ensuring the order of execution for tasks
Sometimes it is necessary to impose certain order on the tasks in a threadpool. Issue 206 of the JavaSpecialists newsletter…
Read More »