English

Predict the output of the following code snippet: char ch='B'; char chr=Character.to.LowerCase(ch); int n=(int) chr-10; System.out.println((char)n+"\t"+chr);

Advertisements

Question

Predict the output of the following code snippet:

char ch='B';
char chr=Character.toLowerCase(ch);
int n=(int)chr-10;
System.out.println((char)n+"\t"+chr);
One Word/Term Answer
Advertisements

Solution

X  b

shaalaa.com
  Is there an error in this question or solution?
2024-2025 (March) Specimen Paper
Advertisements
Share
Notifications



      Forgot password?
Use app×