Java: Java Programming For Beginners a simple Start To Java Programming (Written By a software Engineer)


Download 0.82 Mb.
Pdf ko'rish
bet20/95
Sana09.01.2022
Hajmi0.82 Mb.
#261112
1   ...   16   17   18   19   20   21   22   23   ...   95
Bog'liq
Java Programming For Beginners - A Simple Start to Java Programming ( PDFDrive )

Operators in Java
The  operator  set  in  Java  is  extremely  rich.  Broadly,  the  operators  available  in  Java  are
divided in the following categories.
Relational Operators
Arithmetic Operators
Logical Operators
Bitwise Operators
Misc Operators
Assignment Operators
The Arithmetic Operators
Operations  in  Java  are  used  in  essentially  the  same  manner  as  in  algebra.  They  are  used
with variables for performing arithmetic operations. Here is a list of arithmetic operators
available in Java.
Operation
Operator
Description
Addition
+
Adds the values of two variables
Subtraction
-
Subtracts the values of two variables
Multiplication
*
Multiplies  the  values  of  two
variables
Division
/
Divides the values of two variables
Modulus
%
The  resultant  value  is  the  the
remainder of division
Increment
++
Increases the value by 1
Decrement

Decreases the value by 1

Download 0.82 Mb.

Do'stlaringiz bilan baham:
1   ...   16   17   18   19   20   21   22   23   ...   95




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling