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

Java – Convert int to String and vice versa

Overview This document describes different ways to convert different number data types to String and vice versa. Integer to String (Integer –> String) Primitive type int can be converted to String using either of following methods –  String str = String.valueOf(7); String str = Integer.toString(7); String str = “”+i;   Integer object can be directly converted

Java – How to generate random numbers

Overview This article describes how to generate random numbers in Java. There are multiple ways available to generate random numbers and based on the needs either one can be used. Method 1 – Using Java’s Random One of the simplest ways is to use java.lang.Math.random() method. It generates double ranging¬†from equals to or greater than

About Us

Techoneness is a site containing tutorials, documents, articles related to Java technologies. You can reach out to below email for any suggestions/comments- Email – admin@techoneness.com

Java