Question 09
What is the output of the
following
System.out.println("toLowerrCase(B)
is " + Character.toLowerCase('B'));
Output
Output is
toLowerrCase(B) is b
Question 10
What is the output of the
following
System.out.println("toUpperrCase(a)
is " + Character.toUpperCase('a'));
Output
Output is
toUpperrCase(a) is A
Question 11
What is the output of the
following
char x = 'w';
char y = 'p';
System.out.println(++x);
System.out.println(y++);
System.out.println(x + y);
Output
Output is:
x
p
233
Question 12
What is the output of the
following
char x = 'w';
char y = 'p';
y++;
x+=2;
System.out.println(Character.toUpperCase(y));
System.out.println(Character.toUpperCase(x));
System.out.println(x * y);
Output
Output is
Q
Y
13673
Question 13
What is the output of the
following
char x = 'w';
char y = 'D';
y++;
x+=2;
if(Character.isUpperCase(y)) {
System.out.println(Character.toUpperCase(y));
System.out.println(Character.toUpperCase(x));
}
else
System.out.println(x * y);
Output
Output is
E
Y
Question 14
What is the output of the
following
System.out.println('H' <=
'P');
System.out.println('a' == 'd');
System.out.println('O' >=
's');
System.out.println('d' >=
'A');
System.out.println('a' == 'a');
System.out.println('V' != 'b');
Output
Output is
true
false
false
true
true
true