June 25, 2015

Multiple Mongo Templates in a Spring Boot Application

Hi Readers,
In this post we are going to talk about creating multiple Mongo Templates in a Spring Boot backed application. Spring Boot helps us concentrate on our business logic only and takes care of all the application related configurations. Spring Boot's powerful auto configuration help us writing our applications very fast. 

February 21, 2014

Java 8 Streams API - Terminal Operations

We have been discussing the Java 8 Streams API since couple of our posts. We have had an overview of the Java 8 Streams API, the Laziness and the Performance improvements it brings, and the Intermediate Operations it provides. Today, we are going to cover various Terminal Operations provided by the streams api.

February 6, 2014

Java 8 Streams API - Intermediate Operations

Last couple of posts, we are having an overview of Java 8 Streams API. Till now we have looked at the basics of the streams, understood how the streams work, ways of creating and working with streams and learned about streams laziness and its performance optimization. 

January 31, 2014

Java 8 Streams API - Laziness and Performance Optimization


We have had a quick overview of Java 8 Streams API in the last post. We looked into the Power and simplicity of the Java 8 Streams API, brief about the Intermediate and the Terminal Operations over the streams, and different ways of building the streams (e.g from collections or numerical ranges etc.). In continuation to the same discussion, in this post, we will move ahead with the streams and have a look at the most important property of Java 8 Streams that is Laziness.

January 26, 2014

Understanding Java 8 Streams API

Since past few versions, Java has started giving importance to concurrency. Java 8 goes one more step ahead and has developed a Streams API which lets us think about parallelism. Nowadays, because of the tremendous amount of development  on the hardware front, multicore CPUs are becoming more and more general. In order to leverage the hardware capabilities Java had introduced Fork Join Framework. Java 8 Streams API supports many parallel operations to process the data, while completely abstracting out the low level multithreading logic and letting the developer fully concentrate on the data and the operations to be performed on the data.

January 25, 2014

Introduction to JSR 310 Part 3 : Overview of new Java Date and Time API

The Date and Time support is a very important part of any programming language and having a stronger Date and Time support makes a language more powerful. Although, Java is a powerful programming language it was consistently lacking a stronger Date and Time support. Joda Time API is the most famous Java Date and Time API till now, but it also has set of issues with its structure. It was necessary to enhance the Java's own Date and Time support, and the outcome is JSR 310, the new Java Date and Time API.

April 2, 2013

Introduction to JSR 310 Part 2 : Overview of Joda Time API

Hi Friends, 
In continution with our discussion about JSR 310 (the New Java Date and Time API), we will now move further to understand the JODA time API in brief and then we will have a detailed overview of JSR 310. If you have not read the first part of this discussion, please go and check out Introduction to JSR 310 Part 1 : Overview of existing Date and Time API .

March 26, 2013

Introduction to JSR 310 Part 1 : Overview of existing Date and Time API

Greetings everyone!

It has been a long time since my last post. So far, we have emphasized more on the Introduction of some of the very cool Java 8 features. We also tried to understand the concepts with the help of example code. Moving ahead in the same train, in this Java Tutorial we will check out a yet another exciting Java 8 Feature and that is JSR 310 a new Java Date and Time API. 

October 26, 2012

Java Preferences API - An Introduction

In this Java Tutorial we are going to discuss about a somewhat old but not so famous API of the Java Programing Language. It has been a long time since the Java Preferences API has been introduced to Java SE (JDK). Java Preferences API is extremely lightweight and a cross platform persistent API. Being a persistent API, it does not deal with the database engines but uses OS specific backend to store and retrieve data. 

October 3, 2012

Java Collections API Enhancements: Thanks to Closures – Lambda Expressions

Friends, in the last tutorial we had a detailed introduction to Java 8’s Feature of Closures – Lambda Expressions. During the discussion, we understood the issues with the plain old Anonymous Inner Classes, learnt the Java Closures (Lamba Expressions) Syntax, and also practiced some of our own Java Lambda Expression examples along with the conceptual and practical understanding of Functional Interfaces, Method References, Constructor References and Default Methods.

August 14, 2012

‘At First Sight’ With Closures in Java

The intent of this Online Tutorial on Java is to give a high level overview of the upcoming Lambda Project, which is being developed upon JSR-335 (Second Early Draft Review of JSR-335 is closed in June, 2012). The Lambda Project is going to be a part of Java SE 8 (Java 1.8), which is set to be released in 2013.

August 9, 2012

Introduction to Fork Join Framework

Over the years of evolutions on the hardware fronts, finally we are in the era of multicore processors, which have been capturing its place in our day-to-day devices. Multicore processors are able to perform multiple parallel tasks in separate cores. This has made the programmers and developers to think about doing Parallel Programming or Multi Core Programming and making maximum benefits out of the hardware potentials.

Servlet 3.0 Web Fragments and other Features

This article covers a very exciting feature of Servlets 3.0 and that is support for Web Fragments. The Java Servlets have come up with lots of cool features to bring up Ease of Development, Plug-ability and Asynchronous Request Processing. In this article we will have a detailed discussion on Web Fragments with examples, but to start with, lets have a brief overview of other features of Servlets 3.0.