What should be expression1 evaluate to in using ternary operator as in this line? expression1 ? expression2 : expression3

Question:
What should be expression1 evaluate to in using ternary operator as in this line? expression1 ? expression2 : expression3

1.Boolean

2.Integer

3.Floating point numbers

4.None

Posted Date:-2021-10-25 05:31:30


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!