Computer Applications
The precedence of operators in Java follows BODMAS.
Java Operators
4 Likes
Answer
False
Reason — The precedence of operators in Java does not follow BODMAS. Java uses its own precedence rules to decide which operator is evaluated first.
Answered By
2 Likes
Related Questions
Identify the type of operator &&:
- ternary
- unary
- logical
- relational
Read the following text and choose the correct answer:
Ternary operator is the only conditional operator that takes three operands. It is a one liner replacement of if-else statement.
Which of the following statements is not true for a ternary operator ?
- It is also called a conditional operator.
- It is a replacement of if-else statement.
- The statement describes in one line only.
- It makes the program lengthy, if applied in Java programming.
The output of a++ will be 1, if int a = -1.
The relational operators always result in terms of 'True' or 'False'.