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 »

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 »

Java – Variables and Data Types

In this, java variables and data types tutorial, we learn how to declare a variable in java and what is data types in java. Let’s start with an example to declare variable and data type. Example: Addition of two numbers. In the above example you need to look at the first line in main() method…

Read More »