Computer Applications
Ternary operator is a:
- logical operator
- arithmetic operator
- relational operator
- conditional operator
Java Operators
ICSE Sp 2024
39 Likes
Answer
conditional operator
Reason — Ternary operator is a conditional operator as it evaluates the given condition. Its syntax is as follows:
condition? expression 1 : expression 2
If the condition is true then result of ternary operator is the value of expression 1. Otherwise the result is the value of expression 2.
Answered By
22 Likes
Related Questions
Name the feature of java depicted in the below picture.
- Encapsulation
- Inheritance
- Abstraction
- Polymorphism

The expression which uses >= operator is known as:
- relational
- logical
- arithmetic
- assignment
When primitive data type is converted to a corresponding object of its class, it is called:
- Boxing
- Unboxing
- explicit type conversion
- implicit type conversion
The number of bytes occupied by a character array of 10 elements.
- 20 bytes
- 60 bytes
- 40 bytes
- 120 bytes