Compare Date Without Time In Java

Compare Date This tutorial shows how to compare date without time in Java between two dates. Situation may arise when you need to compare two dates in your Java applications and if you need to compare only date part without time part for accurate results then you need to first remove the time part from the actual date and perform…

Junit Code Coverage using Gradle, Jacoco

For your Java application you need to check the code coverage of your Junit test classes. Code coverage ensures your code quality for the Junit test cases you have written for your functionalities of the application. Here I am going to show you how you can use Jacoco plugin to test the coverage. Currently it supports instruction, branch, line, method…

Setting Priority In JMS Message

Priority Of Message In this tutorial I am going to tell you how to set priority of messages in JMS (Java Messaging Service). So it is possible to control the order of the message before sending to a destination by setting a priority level. It forces the JMS provider to deliver high priority messages first. JMS API has message priority…

Creating new Gradle Project in IntelliJ IDEA

In this tutorial I will show you how to create Java Gradle project in IntelliJ IDEA. If you have not installed already IntelliJ IDEA then you can download and install it from the below link https://www.jetbrains.com/idea/download/

MySQL query to find number of employees under manager

In this tutorial I am going to show you how to find the number of employees under manager. Generally employees and managers both are employees of an organization. But according to the experience level seniority some employees in the organization become manager, lead, etc. Therefore the junior employees are going to report the senior employees. This example will show you…

Java 8 onward Default and Static Methods Example

Introduction In this tutorial I am going to show how default and static methods can be included into Java 8 interfaces. Prior to Java 8 you did not have such mechanism to include default method or static method into interface but Java 8 provides such option to include those methods. Prior to Java 8 if a new methods was added…

MySQL query to find out all employees even when an employee is not tagged to any department

This tutorial will show how to list all employees even when an employee is not tagged to any department.

MySQL query to find managers who are having minimum number of employees under them

This tutorial will show how to find the managers who are having specified minimum number of employees working under them.

Java Enum Example

This tutorial will show how to use Enum in Java. It will show how to get enum instances code by name.

Custom Jackson Joda DateTime Deserializer

This tutorial shows how to deserialize date format when unmarshaling JSON using Jackson. The custom annotation will be created in order to pass the date format using annotation.