हिंदी

Write the output of the following. char c2 = Character.toUpperCase('i'); System.out.println(c2);

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: Library Classes - Exercises [पृष्ठ १३५]

APPEARS IN

रुपा पंडित Computer Applications [English] Class 10 ICSE
अध्याय 5 Library Classes
Exercises | Q 5. (v) | पृष्ठ १३५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×