Which statements are true? Select the three correct answers. (a) The expression (1 + 2 + 3)
Question:
Which statements are true?
Select the three correct answers.
(a) The expression (1 + 2 + "3") evaluates to the string "33".
(b) The expression ("1" + 2 + 3) evaluates to the string "15".
(c) The expression (4 + 1.0f) evaluates to the float value 5.0f.
(d) The expression (10/9) evaluates to the int value 1.
(e) The expression ('a' + 1) evaluates to the char value 'b'.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Programmers Guide To Java SE 8 Oracle Certified Associate OCA
ISBN: 9780132930215
1st Edition
Authors: Khalid Mughal, Rolf Rasmussen
Question Posted: