From 0a8f56ceca66b85d3ea96aa87d7a9da331894dca Mon Sep 17 00:00:00 2001 From: akadidas Date: Tue, 30 Oct 2018 03:57:24 +0530 Subject: [PATCH] Update index.md (#22083) Required changes and examples. --- guide/english/java/basic-operations/index.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/guide/english/java/basic-operations/index.md b/guide/english/java/basic-operations/index.md index 176995db50..c9702a437a 100644 --- a/guide/english/java/basic-operations/index.md +++ b/guide/english/java/basic-operations/index.md @@ -7,12 +7,17 @@ Java supports the following operations on variables: * __Arithmetic__ : `Addition (+)`, `Subtraction (-)`, `Multiplication (*)`, `Division (/)`, `Modulus (%)`,`Increment (++)`,`Decrement (--)`. * __String concatenation__: `+` can be used for String concatenation, but subtraction `-` on a String is not a valid operation. + **In java ***+*** operator is overloaded on functionality to concatenate strings and to perform addition information** * __Relational__: `Equal to (==)`, `Not Equal to (!=)`, `Greater than (>)`, `Less than (<)`, `Greater than or equal to (>=)`, `Less than or equal to (<=)` -* __Bitwise__: `Bitwise And (&)`, `Bitwise Or (|)`, `Bitwise XOR (^)`, `Bitwise Compliment (~)`, `Left shift (<<)`, `Right Shift (>>)`, `Zero fill right shift (>>>)` +**Always remember sign of greater and less than always come before assign i.e "="** +* __Bitwise__: `Bitwise And (&)`, `Bitwise Or (|)`, `Bitwise XOR (^)`, `Bitwise Compliment (~)`, `Left shift (<<)`, `Right Shift (>>)`, `Zero fill right shift (>>>)`. +**Bitwise operators are used to perform bitwise operation in places where calculation on binary numbers are required like-in ciphers,and to design virtual electronic circut replication etc. ** * __Logical__: `Logical And (&&)`, `Logical Or (||)`, `Logical Not (!)` -* __Assignment__: `=`, `+=`, `-=`, `*=`, `/=`, `%=`, `<<=`, `>>=`, `&=`, `^=`, `|=` -* __Others__: `Conditional/Ternary(?:)`, `instanceof` +* __Assignment__: `=`, `+=`, `-=`, `*=`, `/=`, `%=`, `<<=`, `>>=`, `&=`, `^=`, `|=` + +* __Others__: `Conditional/Ternary(?:)`, `instanceof` +**Ternary because it work on the functionality of If Then Else i.e If condition is right then first alternative anotherwise the second one ** While most of the operations are self-explanatory, the Conditional (Ternary) Operator works as follows: `expression that results in boolean output ? return this value if true : return this value if false;`