Core Java
-
Mock Static Methods with PowerMock
In a recent blog, I tried to highlight the benefits of using dependency injection and expressing the idea that one…
Read More » -
Java Secret: Loading and unloading static fields
OVERVIEW To start with it is natural to assume that static fields have a special life cycle and live for…
Read More » -
Testing an Object’s Internal State with PowerMock
Most unit testing focuses on testing an object’s behaviour in order to prove that it works. This is achieved by…
Read More » -
Top 10 Java Books you don’t want to miss
We learn by reading books and experimenting on it. So, it is imperative that you choose the best available options.…
Read More » -
Concurrency optimization – Reduce lock granularity
Performance is very important in high load multi-threaded applications. Developers must be aware of concurrency issues in order to achieve…
Read More » -
Monitoring OpenJDK from the CLI
Currently I do quite a bit of work in and around the Java virtual machine (JVM), most of the time…
Read More » -
Programming antipatterns
Did you ever do a code review where you recorded an extremely high amount of WTF/m? And did you…
Read More » -
Sending emails with Java
I start writing this post as a simple “how to send an email” using Java, but later I found I…
Read More » -
Java Twitter client with Twitter4j
Got inspired by my friend, who built his own Twitter client for his company’s client. So, I tried to build…
Read More »