मराठी

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×