Spring Bean Annotations

 Overview In this article, we’ll discuss the most common Spring bean annotations used to define different types of beans. There’re several ways to configure beans in a Spring container. We can declare…

Continue Reading

Bubble Sort

Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in the wrong order. Example:First Pass:( 5 1 4 2 8 ) –> ( 1 5 4 2…

Continue Reading

Vector vs ArrayList in Java

ArrayList and Vectors both implement the List interface and both use (dynamically resizable) arrays for its internal data structure, much like using an ordinary array.Syntax: ArrayList<T> al = new ArrayList<T>(); Vector<T> v…

Continue Reading

ArrayList in Java

ArrayList is a part of collection framework and is present in java.util package. It provides us dynamic arrays in Java. Though, it may be slower than standard arrays but can be helpful…

Continue Reading

Java 101: Interfaces in Java

Java interfaces are different from classes, and it's important to know how to use their special properties in your Java programs. This tutorial introduces the difference between classes and interfaces,…

Continue Reading