Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

What is ternary operator in java?

Category: Java

Java ternary operator is the only conditional operator that takes three operands. It’s a one liner replacement for if-then-else statement and used a lot in java programming. We can use ternary operator if-else conditions or even switch conditions using nested ternary operators.

Leave a Reply

Your email address will not be published. Required fields are marked *