मराठी

What are ternary operators?

Advertisements

प्रश्न

What are ternary operators?

लघु उत्तर
Advertisements

उत्तर

The Ternary Operator (?:) in Java is a conditional operator that operates on three operands. It is used to evaluate a condition and select one of two values based on whether the condition is true or false. It provides a shorter and simpler alternative to an if-else statement.

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 6: Variables and Expressions - EXERCISE [पृष्ठ १३१]

APPEARS IN

धीरज मेहरोत्रा Computer Science [English] Class 12
पाठ 6 Variables and Expressions
EXERCISE | Q 19. (i) | पृष्ठ १३१
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×