Ternary Operator

Ternary Operator

Conditional operator is basically called the Ternary operator its mainly return the two values based on the whether a boolean expression is true or false.its have a two conditions which is following here :

  1. returns the value after the ? if the expression is true.
  2. returns the value after the : if the expression is false.

By:umang
Date:2026-03-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related scjp1.5 GEN Links

scjp1.5 GEN interview questions and answers for experienced and fresher