हिंदी

Write the output of the following. char c1 = Character.toLowerCase('Q'); System.out.println(c1);

Advertisements
Advertisements

प्रश्न

Write the output of the following.

char c1 = Character.toLowerCase('Q');

System.out.println(c1);

अति संक्षिप्त उत्तर
Advertisements

उत्तर

q

Explanation:

The method Character.toLowerCase('Q') converts the provided uppercase character into its lowercase equivalent. Because the input is a capital 'Q', the method transforms it into a lowercase 'q', which is then stored in the variable c1 and printed.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: Library Classes - Exercises [पृष्ठ १३५]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×