Multiple choice technology programming languages

" ?: " is a

  1. Conditional operator

  2. assignment operator

  3. bitwise operator

  4. none

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The '?:' operator in Java is the ternary conditional operator (also called the conditional operator). It evaluates a boolean expression and returns one of two values based on whether the expression is true or false. It's not an assignment operator, bitwise operator, or any other type - it's specifically for conditional expressions.