Advertisements
Advertisements
प्रश्न
Write the output of the following.
char c2 = Character.toUpperCase('i');
System.out.println(c2);
अति संक्षिप्त उत्तर
Advertisements
उत्तर
I
Explanation:
The method Character.toUpperCase('i') converts the provided lowercase character into its uppercase equivalent. Because the input is a lowercase 'i', the method transforms it into a capital 'I', which is then stored in the variable c2 and printed
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
