KnowledgeBoat Logo

Output Questions for Class 10 ICSE Computer Applications

Find the output of the following program snippet:


int n = 97;
char ch = Character.toUpperCase((char)n);
System.out.println(ch + " Great Victory");

Java

Java Library Classes

49 Likes

Answer

A Great Victory

Working

97 is the ASCII code of small a so Character.toUpperCase((char)n) returns capital A which is stored in ch.

Answered By

32 Likes