KnowledgeBoat Logo
|

Computer Applications

Out of the following options, what is shown in this illustration.

Out of the following options, what is shown in this illustration. Introduction to Object Oriented Programming Concepts, APC Understanding ICSE Computer Applications with BlueJ Solutions Class 10
  1. Unary Operator
  2. Arithmetical Operator
  3. Ternary Operator
  4. Binary Operator

Java Operators

10 Likes

Answer

Ternary Operator

Reason — The given expression Var = test_expr ? expr1 : expr2 uses the ternary operator, which is a type of conditional operator in Java. It works with three parts:

  • test_expr: the condition to check.
  • expr1: the value assigned if the condition is true.
  • expr2: the value assigned if the condition is false.

Answered By

5 Likes


Related Questions