Java 9 – New versioning scheme

Background Anybody new starting to Java always wonder why do we call Java 6, Java 7, Java 8 versions when their actual version numbers are like 1.6.0.33, 1.7.0.12, 1.8.0.14 respectively. Java’s major version is really the second digit in the version string. In Java 9, Oracle is going to make changes in version string scheme

Java Date Api Explained

This is one area where I have seen even seasoned developers go back to documentation and basic every time they need to deal with dates. Java Date API has evolved since beginning and with new Date API in Java 8 things seem to settle down. But given that there are still applications using older versions of

Setup small herb garden

May 01′ 2016 Growing vegetables, herbs and fruits is a wonderful experience and is beneficial both in terms of money and health. This year, I have setup one medium size vegetable garden as well as a small herb garden in a container. In this page, I am going to talk about the herb garden and

Interesting Java 7 feature – Handle multiple exceptions together and Improved type checking

This article is second in the series of Interesting Java 7 features. If you want to visit the previous article of “try-with-resources” follow the below link- try-with-resources statement Handle multiple exceptions together Since the time, we started writing exception handling in Java code, we had two options – either catch individual exceptions and handle them

Interesting Java 7 feature – Handle multiple exceptions together and Improved type checking

This article is second in the series of Interesting Java 7 features. If you want to visit the previous article of “try-with-resources” follow the below link- try-with-resources statement Handle multiple exceptions together Since the time, we started writing exception handling in Java code, we had two options – either catch individual exceptions and handle them

Interesting Java 7 feature – try-with-resources statement

Maven Transitive Dependencies Explained

Apache Maven 14 Nov 2015 Apache maven is one of the widely used build tool in Java communitory and most of the developers are familiar with it. At times developers struggle to understand the dependencies or libraries being referenced at the compile time or at the run-time. This article explains how maven resolves direct or indirect referenced libraries

Oracle find first element in a group

Overview This is one of the common problems I have faced while writting Oracle queries. Data in relational tables is to be grouped together based on the criteria and top element of each group is to be printed out. In this article I have defined different ways of doing this by taking a simple example. Example Employee

Performance comparison between custom row mapper and Spring’s bean property row mapper

Custom Row Mapper Vs Spring’s Bean Property Row Mapper Nov 14′ 2015 For quering relational database tables from Java layer, developers have an option of either using JPA (Java persistence API) to directly map java objects with relational database tables or they can directly write SQL queries and execute them using JDBC connection (or Spring JDBC

Java – enums | lookup enum by value

  Overview This article explains how Java enums work and different ways to lookup Enums based on their values. It also explains the performance of different approaches of java enum reverse lookup and performance of valueof method.  Java Enums Enums were introduced as part of JDK5 version to enable programmers to create a set of constants with below