What Should Be Expression1 Evaluate To In Using Ternary #112
What should be expression1 evaluate to in using ternary operator as in this line?</p> <pre><code class="language-txt"> expression1 ? expression2 : expression3 </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs128 Java. It can also be found in gs gs128 Java Operators Control Statements - Java Assignment Operators and Operator Precedence - Quiz No.1.
What should be expression1 evaluate to in using ternary operator as in this line?
expression1 ? expression2 : expression3
Integer
Floating – point numbers
Boolean
None of the mentioned