Answer to Question #240617 in Java | JSP | JSF for Soulial

Question #240617

 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());


1
Expert's answer
2021-09-22T08:30:43-0400
a. a = a
b. a = a
c. 163
d. This is fun.
e. 12

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS