Question: Which statements are true? Select the three correct answers. (a) The expression (1 + 2 + 3) evaluates to the string 33. (b) The expression

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'.

Step by Step Solution

3.37 Rating (163 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a c and d The left associativity of the operator makes the evaluation of 1 2 3 pr... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming 8th Questions!