मराठी

Write the output of the following. boolean b2 = Character.isUpperCase('m'); System.out.println(b2);

Advertisements
Advertisements

प्रश्न

Write the output of the following.

boolean b2 = Character.isUpperCase('m');

System.out.println(b2);

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

उत्तर

false

Explanation:

The method Character.isUpperCase('m') checks whether the character inside the parentheses is a capital letter. Because 'm' is a lowercase letter, the method evaluates to false, which is then stored in b2 and printed to the console.

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 5: Library Classes - Exercises [पृष्ठ १३५]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×