logo CodeStepByStep logo

expressionsStrings2

Language/Type: Java expressions string

Trace the evaluation of the following expressions, and give their resulting values. Make sure to give a value of the appropriate type (such as including a " " quotes around a String).

2 + 6 + "cs"
"cs 123" + 2 + 6
1 + 9 / 2 * 2.0
46 / 3 / 2.0 / 3 * 4/5
50 / 9 / 2.0 + 200 / 10 / (5.0 / 2)

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.