3.Which of the following assignment statements is correct toassign character 5 to c? a. char c =...
Fantastic news! We've Found the answer you've been seeking!
Question:
3.Which of the following assignment statements is correct toassign character 5 to c?
a. char c = 5;
b. char c = "5";
c. char c = '5';
d. char c = "344";
4. What is the output of the following code: (Please indent thestatement correctly first.)
int x = 9;
int y = 8;
int z = 7;
if (x > 9)
if (y > 8)
System.out.println("x > 9 and y > 8");
else if (z >= 7)
System.out.println("x <= 9 and z >= 7");
else
System.out.println("x <= 9 and z < 7");
a. x > 9 and y > 8;
b. x <= 9 and z >= 7;
c. none
d. x <= 9 and z < 7;
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: