What are the Logical operators?

Ans: OR(|), AND(&), XOR(^) AND NOT(~).

What is the % operator?

Ans : % operator is the modulo operator or reminder operator. It returns the reminder of dividing the first operand by second operand.

What is the value of 111 % 13?

a)3 b)5 c)7 d)9 Ans:c.

Is &&= a valid operator?

Ans : No.

Can a double value be cast to a byte?

Ans : Yes.

Can a byte object be cast to a double value ?

Ans : No. An object cannot be cast to a primitive value.

What are order of precedence and associativity?

Ans : Order of precedence the order in which operators are evaluated in expressions. Associativity determines whether an expression is evaluated left-right or right-left.

Which Java operator is right associativity?

Ans : = operator.

What is the difference between prefix and postfix of -- and ++ operators?

Ans : The prefix form returns the increment or decrement operation and returns the value of the increment or decrement operation. The postfix form returns the current value of all of the expression and then performs the increment or decrement operation on that value.

Google