Home / Programming MCQs / JAVA MCQs / Question

Q. Which of these statements are incorrect?

(A) Equal to operator has least precedence
(B) Addition operator, +, and subtraction operator have equal precedence
(C) Brackets () have highest precedence
(D) Division operator, /, has higher precedence than multiplication operator

Explanation:

Division operator, /, has equal precedence as of multiplication operator. In expression involving multiplication and division evaluation of expression will begin from right side when no brackets are used.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.