Java collection

By using Array, we can store homogenous data elements. But Array has some limitations.consider a situation in which you have to store heterogeneous data elements as a single entity. can...

Arrays

What is a variable?Variables are called placeholders. so when you sayint x = 10;It means x is a placeholder for value 10. If you want to declare 1000 variables then you have...

Hibernate Framework in Java

Hibernate Framework in JavaHibernate framework simplifies the development of Java application to interact with the database. Hibernate is an open source, lightweight, ORM (Object Relational Mapping) tool.An ORM tool simplifies the...

Exception handling in java

An exception is any unwanted thing which may interrupt the control flow of the program.Types of ExceptionsThere are mainly 2 types of Exceptions - checked or unchecked. Checked Exception:Exceptions that...

Stack in java

A stack is one of the elementary data structure which is based on the LIFO property - Last In First Out.Example: a stack of books. In this structure, you can...

Hackerrank java Introduction loops II

 Here we have been given 3 things - a, b , n. so now try to learn the series pattern.you are given q queries means you have to loop...

Strings – Introduction

Introduction: -Strings are called character array. i.e. a sequence of characters.This is a class which is defined in java.lang package. Always Remember it is not a data type.This is one...

Java – An Introduction

Java is a general-purpose computer programming language designed to produce programs that will run on any computer system.Slogan of JAVA"Write once, run anywhere" (WORA)History of JavaJava is a general-purpose,...

Naming convention in java

In java, mainly following entities are there. There is some standard for naming every entity. It is not forced but it is suggested to follow.  PackageThe prefix of a...

Access Modifiers in java

There are 2 types of modifiers in java: Access modifiers Non-access modifiersIn this post, we will learn about access modifiers.Access ModifierIt defines the scope of the class and its...