Computer Science, asked by dinesh8721, 2 months ago

predict the output char ch='y'; char chr=Character.toUpperCase int p=(int) chr system.out.println(chr+"\t"+p);

Please Answer Correctly​

Answers

Answered by Oreki
5

\textsf{\large \textbf{Given Snippet}}

   \texttt{char ch = `y';}\\\texttt{char chr = Character.toUpperCase(ch);}\\\texttt{int p = (int) chr;}\\\texttt{System.out.println(chr + "\symbol{92}t" + p);}

\textsf{\large \textbf{After Execution}}

   \texttt{Y \hspace{1em} 89}

Similar questions