Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Java Programming

Assume that “int a=1” and “double d=1.0”, and that each expression is independent of the others.  What are the results of the following expressions (that is, the resulting value of a or d)?

1:     a = 46 / 9;

2:     a = 46 % 9 + 4 * 4 - 2;

3:     a = 45 + 43 % 5 * (23 * 3 % 2);

4:     a %= 3 / a + 3;

5:     d = 4 + d * d + 4;

6:     d += 1.5 * 3 + (++a);

7:     d -= 1.5 * 3 + a++;

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question