Java All : Operators (Arithmetic-Assignment-Unary-Relational-Logical)

Using simple assignment means = operator and special variations with arithmetic operators like +=, -=, *=, /= and %= .

Understanding unary increment with post operation and pre operation example.

Use of equality check operator == and other relational operators like not equal to !=, less than < , greater than > , less than or equal to <= and greater than or equal to >= operators.

Understanding unary operator plus, minus and inversion.

Understanding the use of condition operators and (&&) and or (||)

Understanding the use of conditional ternary operator with three operands

Understanding operator precedence with simple arithmetic and unary operators.

Understanding operator precedence with comparison(relational) and logical(conditional) operators.

Understanding rules of widening type promotions from byte->short->int->long->float->double.

Write output of the following program.

Prove that output of the following program would be true.

( As In Exam - ICSE2014 )

Operators with higher precedence are evaluated before operators with relative

Code Sheets:12 Solved Problems:6 Quizzes:6

×