Core Java
-
About Java Packages
I hope we all agree that methods an classes should be small and have only few dependencies. This point of…
Read More » -
NetBeans 7.2 beta: Faster and More Helpful
There has been significant excitement about the beta release of NetBeans 7.2. In this post, I look briefly at what…
Read More » -
OutOfMemoryError: Java heap space – Analysis and resolution approach
java.lang.OutOfMemoryError: Java heap problem is one of the most complex problems you can face when supporting or developing complex Java…
Read More » -
Functional style in Java with predicates – Part 2
In the first part of this article we introduced predicates, which bring some of the benefits of functional programming to…
Read More » -
Functional style in Java with predicates – Part 1
You keep hearing about functional programming that is going to take over the world, and you are still stuck to…
Read More » -
Generic Text Comparison Tool with LCS Approach
Detecting and showing differences of two texts (especially having hundreds or thousands of lines) is a common problem. Using pure…
Read More » -
Solving a Producer-Consumer Problem in Java
The producer-consumer problem is one of the most frequently encountered problems when we attempt multi threaded programming. While not as…
Read More » -
Easy Unit and Integration Code Coverage
This example shows how to generate coverage for unit and integration tests using Maven and Sonar. It uses very simple…
Read More » -
Java pitfalls: Field access in inner classes
This is not a “pitfall” per se, but an implementation detail worth knowing. Let’s say I have a inner class…
Read More »