Suppose that a variable a is declared as double a = 3.14159. What does each of the

Question:

Suppose that a variable a is declared as double a = 3.14159. What does each of the following print?

a. System.out.println(a);

b. System.out.println(a+1);

c. System.out.println(8/(int) a);

d. System.out.println(8/a);

e. System.out.println((int) (8/a));

Explain each outcome.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question
Question Posted: