मराठी

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×