Given the following declarations, what is the result of each of each output?
char a = 'a', b = 'B';
char c = ' ', d;
string s = "This is fun.";
int e;
System.out.println a. ("a = " + a); b.("a = " + 'a'); c.(a + b);
d. (s);
e. (s.length());
a. a = a
b. a = a
c. 163
d. This is fun.
e. 12
Comments
Leave a comment