Core Java
-
Java private, protected, public and default
You are a Java programmer, so you know what I am talking about. public modifiers make a method or field…
Read More » -
Avoiding Null Checks In Java
One of the worst nightmares for java developers ( from junior to experts ) is null object reference checking. I’m…
Read More » -
Avoiding Many If Blocks For Validation Checking
There are cases that we want to validate input data before we send them to business logic layer for processing, computations…
Read More » -
Keyword extraction and similarity calculation among textual content
Background Web applications are becoming smarter. Gone are the days when to avail a service from a website, user had…
Read More » -
Clean JUnit Throwable-Tests with Java 8 Lambdas
Recently I was involved in a short online discussion on twitter and google+ which concerned the question why the arrival…
Read More » -
JSR 303 loading messages from an I18N property file
Overview This article will illustrate how to adapt the JSR 303 validation API to load messages from an I18n property…
Read More » -
Developing Eclipse plugins
Recently I started working with a team on an Eclipse plugin. The team had developed an awesome plugin that does…
Read More » -
A JUnit Rule to Run a Test in Its Own Thread
Occasionally it would be helpful to be able to run a JUnit test in a separate thread. In particular when…
Read More » -
Template Method Pattern Example Using Java Generics
If you find that a lot of your routines are exactly the same except for certain sections, you might want…
Read More »