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 [पृष्ठ १३५]
