1. What does each of the following print? a. System. out. Println('b'); b. System. out. Println('b' + 'c'); c. System. out. Println((char) ('a' + 4)); Explain each outcome. 2.Suppose that a variable a...


1. What does each of the following print?


a. System. out. Println('b');


b. System. out. Println('b' + 'c');


c. System. out. Println((char) ('a' + 4));


Explain each outcome.


2.Suppose that a variable a is declared as int a = 2147483647 (or equivalently, Integer.MAX_VALUE). What does each of the following print?


a. System. out. Println(a);


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


c. System. out. Println(2-a);


d. System. out. Println(-2-a);


e. System. out. Println(2*a);


f. System. out. Println(4*a);


Explain each outcome

Nov 14, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here