Java Operators
Operators are divided into 4 parts:
1. Arithmetic
2. Bitwise
3. Assignment
4. Comparision
5. Logical
1.Arithmetic Operators
i) +
ii) -
iii) *
iv) /
v) % (Modulo - gives the remainder of division)
vi) ++ (Increment Operator)
vii) -- (Decrement Operator)
* Increment and Decrement operator can be used in 2 ways :-
1) Prefix
++b; // This tells the compiler to increment the value of "b" on the same line
CODE:
2) Postfix
b++; //Increments the value on the next line
CODE:
1. Arithmetic
2. Bitwise
3. Assignment
4. Comparision
5. Logical
1.Arithmetic Operators
i) +
ii) -
iii) *
iv) /
v) % (Modulo - gives the remainder of division)
vi) ++ (Increment Operator)
vii) -- (Decrement Operator)
* Increment and Decrement operator can be used in 2 ways :-
1) Prefix
++b; // This tells the compiler to increment the value of "b" on the same line
CODE:
output: Here the value a does not get 6 because it is updated on next line
2) Postfix
b++; //Increments the value on the next line
CODE:
Output: Here the value get updated because postfix tells to update the value on the same line
JAVA88 Casino | Slots & Casinos | JamBase
ReplyDeleteThe JAVA88 online 거제 출장안마 slot and 거제 출장샵 casino is operated by an online 안성 출장안마 gaming company. It has a license 거제 출장마사지 from the Malta Gaming Authority. The slot game was 광주광역 출장안마