Playing with java language nuances