Category Archives: Java

Spring Boot + Elasticsearch + CRUD example

In this article we will learn “How to use the Elasticsearch with Spring Boot Application“. Here we will build Spring Boot application to perform all CRUD operation on Elasticsearch. Introduction To Elasticsearch Elasticsearch is a open search, free, distributed and analytics… Read More »

Map Interface in Java

Map interface in Java is a collection of entries that means you can store multiple entries on the map. Entry An entry is data in the form of a key-value pair wherein key must always be unique but the value can… Read More »

Method Overriding in Java

Method Overriding in Java is to provide the different logic to the method in the subclass which is inherited from the superclass. That means the method which presents in the superclass is also present in the subclass or child class. But… Read More »

Variables in Java

Variables in Java are a bucket or container that used to contains the value or technically it is defined as the identifier used for giving the name to memory. Types of Variables in Java There are two types of variables are… Read More »

Tricky Java Interview Questions

Introduction In this article, I have combined all-important and tricky questions you will definitely be asked in a Java interview.  Do we create the object of Abstract class in Java No, we cannot create an object of an abstract class. Why… Read More »

Keywords in Java

Keywords in Java are something that has got a special meaning. It is a predefined word which has special meaning in Java and these words cannot be used as object reference, variables, or data member. Example: If we want to store… Read More »

Set Interface in Java

Set Interface in Java is an interface of the Collection framework present since JDK 1.2. Important Points About Set Interface Set interface maintains the uniqueness by not storing duplicate data. It is not an index-based. There are 3 implementation classes of… Read More »

List in Java

List in java is the sub-interface of the collection interface present since JDK 1.2. It is used to store multiple elements or Objects as a single entity. Important points about List Interface It is an index-based. List can store duplicate data.… Read More »

Introduction to Java and JDK in Java

Java is a high-level object-oriented programming language using which software can be developed. Here I have a question for you what is a programming language?  A programming language is a set of instructions given to the machine to perform some tasks.… Read More »

Collections in Java

Collection in Java provides a structure using which we can store a huge amount of data and at the same time it’s provides so many inbuilt functions or methods using which we can perform many operations such as insertion, sorting, fetching… Read More »

Constructor in Java

A constructor is one of the members of a class, which is used is to initialize the instance variables of class at the time of Object Creation. Important Points About Constructor in Java The constructor name must be the same as… Read More »