Computer Applications
Identify the type of operator &&:
- ternary
- unary
- logical
- relational
Java Operators
4 Likes
Answer
logical
Reason — Logical operators operate only on boolean operands and are used to construct complex decision-making expressions. Logical AND && operator evaluates to true only if both of its operands are true.
Answered By
3 Likes
Related Questions
Choose the odd one out from the following:
- Unary operator
- Binary operator
- Ternary operator
- Bitwise operator
Given: x += x++ + ++x + --x
Find the value, when x=5.- 23
- 21
- 22
- 24
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 precedence of operators in Java follows BODMAS.