operator in java

Operators in Java

Operators in Java Java provides a rich set of operators to manipulate variables. We can divide all the Java operators into the following group. Types of operator in Java Arithmetic Operator Relational Operator Bitwise Operator Logical Operator Assignment Operator 1) Arithmetic Operator in Java Arithmetic operators are used in mathematical Read more…

How to take user input in java

Take user input in Java

How to take user input in Java JAVA Syntax :       import java.util.Scanner       Scanner sc = new Scanner(System.in) The syntax given above is use to take the input from the user. The syntax import java.util.Scanner is a package & the  Scanner sc = new Scanner(System.in) is a class of Read more…

Type casting in Java

Type casting in Java  For learning type casting in Java, Firstly we have to learn what is type casting ? What is type casting  “The process of converting of data from one type to another type is known as type casting”.  There are two types of type casting which is Read more…

Data types in Java

Data types in Java Data types in Java  Definition – “Data types in simple language we can says that the types of data we are using in the program”. Data types are of two types – 1. PRIMITIVE DATA TYPES 2. NON-PRIMITIVE DATA TYPES Primitive Data types The list of Read more…