What does each of the following print? a. System.out.println(2 + bc); b. System.out.println(2 + 3 + bc);

Question:

What does each of the following print?

a. System.out.println(2 + "bc");

b. System.out.println(2 + 3 + "bc");

c. System.out.println((2+3) + "bc");

d. System.out.println("bc" + (2+3));

e. System.out.println("bc" + 2 + 3);

Explain each outcome.

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

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: