Java – OOPs Concept

Object-Oriented Programming or OOPs is a modern way of programming to use real-life entities. Java uses features of OOPs, that’s why java is known as an Object-Oriented Programming Language. The core concept of OOP is to bind data and function in a single unit with reuse of the code principal. Features of OOPs. Object Class…

Read More »

Java – String

In this Java String tutorial, we will learn how to create a String, how to accept String input in Java, useful String methods and many more about String with examples. What is a String? In the computer programming world, text values are known as a String. So we can say String is a sequence of…

Read More »

Java – Array

Java array is a collection of multiple data items but of the same data type. In this tutorial, we will learn how to create, store and show data of an array in Java. What is an Array? The array is a data structure. It can store multiple data but of the same type. Elements of…

Read More »

Java – Loops (for, while, do-while)

Java loops are also known as control flow statement and used for iteration (repetition). Loops are used to repeat statements multiple times until the condition is satisfied. In this tutorial, we will learn about the syntax of a loop and how to use a loop in Java program with the example. Types of Loops In…

Read More »

Java – Decision Making

In the programming languages, all the line of the code is an instruction to the computer. The computer follows that instruction and performs the task. But there is a disadvantage of the computer that it can’t take the decision itself. So for the decision making, programming languages use if-else and switch-case statement. Java If Statement…

Read More »

Input in Java – Different Ways

java input

Here we will learn how to accept input in Java. Java has many different ways to accept user input. Here, we will learn many of them with an example. 1. Input Using Scanner The Scanner is a predefined class of java.util package (Library), we need to import before using Scanner class. It has many different…

Read More »

Java – User Input

In this tutorial, we will learn how to accept input in Java. Java has many different ways to accept user input. Here, we will learn to accept user input using the Scanner class in detail with the example. User Input Using Scanner A Scanner is a predefined class in Java and found in java.util package…

Read More »

Java – Operators

Here, we will learn about operators in java. Operators are symbols, which perform a specific task on given values. For example +,-,* are Java operators for the arithmetical operations. Java has many different types of operators, we will discuss all of them here. Types of Operators in Java Java has many different types of Operators,…

Read More »