Advertisements
Advertisements
प्रश्न
Write the output of the following.
boolean b1 = Character.isDigit('h');
System.out.println(b1);
अति संक्षिप्त उत्तर
Advertisements
उत्तर
false
Explanation:
The method Character.isDigit('h') checks whether the character inside the parentheses is a numeric digit (0–9). Because it 'h' is a lowercase letter and not a number, the method evaluates to it, which is then stored in b1 and printed.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
