Core Java
-

Does Immutability really means Thread Safety?
I have often read articles telling “If an object is immutable, it is thread safe”. Actually, I have never found…
Read More » -

Test Driven Traps, part 2
The Story of a Unit in Unit Tests In the previous part of this article, you could see some bad,…
Read More » -

Checked and unchecked exceptions in Java
Java has two types of exceptions – checked and unchecked. In short – checked are meant for cases when the…
Read More » -

Guava Files: Java File Management
Both Groovy and Java SE 7 provide improvements for file management in Java as I discussed in posts here, here,…
Read More » -

Is Java Dead or Invincible?
Writer Isaac Asimov once said that ‘the only constant is change’. That isn’t just a phrase in the software industry,…
Read More » -

Chain Of Responsibility Design Pattern Example
Avoid coupling the sender of a request to the receiver by giving more than one object a chance to handle…
Read More » -

OutOfMemoryError: unable to create new native thread – Problem Demystified
As you may have seen from my previous tutorials and case studies , Java Heap Space OutOfMemoryError problems can be…
Read More » -

Multiple versions of Java on OS X Mountain Lion
Before Mountain Lion, Java was bundled inside OS X. It seems that during the upgrade, the Java 6 version I…
Read More » -

Using PowerMock to Mock Constructors
In my opinion, one of the main benefits of dependency injection is that you can inject mock and/or stub objects…
Read More »



