Month: December 2018

Assignment Operator

Assignments The following is the list of all possible compound assignment operator. + =            & =                  % = – =             | =                 >>> = * =            ^ =                << = / =            >> = In the case of compound assignment operator, the required type casting is performed automatically by the compiler. byte b = 20 […]

Types Cast Operator

Type Cast Operator There are two types of primitive type castings a possible. implicit type casting explicit type casting Implicit Type Casting Compiler is responsible for this type casting. performed automatically where ever we are assigning smaller value to the bigger data type It is also known as Widening  or up casting There is no […]

Short Circuit Operators

Short Circuit Operators ( &&, || ) These operators are exactly same as normal operator |, ‘&’ except the following difference.  General Operators ( &, | )  Short Circuit Operator ( &&, || )  Both arguments should be evaluated always.  Second argument evaluation is optional.  Relatively performance is low. Performance is high.  Applicable for both […]