Author Archive


How to Create a Custom Java Exception

Java programming language uses special exception classes to handle program errors and exceptional events in the system. Java organizes exceptions into 3 basic types – Exception, Error and RuntimeException. The Exception and Error classes are root level classes. The Exception class and its derived classes indicates internal application errors. The Error class and its derived […]

How to Implement Bubble Sort in Java

Bubble sort is one of the simplest and easy to understand sort algorithm. It works by comparing each pair of adjacent elements in a list and swapping them if they are in wrong order. This swapping process is repeated for the entire set of elements again and again until no swaps are detected. At this […]

Spring Boot Crud Application Tutorial with MongoDB

Welcome to this quick tutorial on creating a spring boot crud application with MongoDB database. This tutorial assumes that you are familiar with Java web applications, spring framework, MongoDB and gradle build system. This tutorial also uses spring tool suite(STS) as the IDE. If you are not familiar with STS, check out getting started with […]

How to Disable Spring Boot Banner

When you start a spring boot application, the spring logo is printed on the console using ascii art. In spring boot terminology this is known as the boot startup banner. In default configuration, the startup banner is the first output printed on the console. . ____ _ __ _ _ /\\ / ___’_ __ _ […]

How to Parse a CSV file in Java

A CSV file is a simple text file used to store tabular data. Each line is a record of data and consists of fields separated by commas. The main advantage of CSV file format is that it is portable and human readable. Files using proprietary formats such as Microsoft excel files can be exported to […]