What is ternary operator?
Answer / Viveka Nand Shukl
"The ternary operator (?:) in Java is a shorthand if-else statement that assigns the result of a conditional expression to a variable. It takes three operands: condition, expression for true, and expression for false."
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between equals() and == in java?
How to optimize the javac output?
Is Cegonsoft Pvt.Ltd. a good Institute?
What are the features in java?
Can It is possible to synchronize the constructor of a Java Class?
What are the three best choices for a development environment?
What is the diffrence between inner class and nested class?
Catch(Exception e){ } in that what is Exception and purpose of that in that place exactly?
Java violates few objected oriented concepts. Can you explain in what way?
what are the diffrences between interface and abstract class?
Explain cookies?
Which types of exceptions are caught at compile time?