Java Operators
Java Operators
1.Arithmetic Operators
2.Assignment Operators
3.Relational Operators
4.Logical Operators
5.Unary Operators
Java Arithmetic Operators
Arithmetic operators are used to perform arithmetic
operations on variables and data.
+ operator is
used to add two
variables
Java Arithmetic Operators
Arithmetic operators are used to perform arithmetic
operations on variables and data.
+ operator is
used to add two
variables
Using the + operator is the
most common way to concatenate
two strings in Java. You can provide
either a variable, a number, or a
String literal (which is always
surrounded by double quotes). Be
sure to add a space so that when
the combined string is printed, its
words are separated properly
EXAMPLE OF ARITHMETIC
OPERATIONS
Java Assignment Operators
Assignment operators are used in
Java to assign values to variables