Give the output of the following Character class method:Character.isLetterOrDigit('W')
Advertisements
प्रश्न
Give the output of the following Character class
method:Character.isLetterOrDigit('W')
अति संक्षिप्त उत्तर
Advertisements
उत्तर
True
Explanation:
The method Character.isLetterOrDigit('W') checks whether the given character is either an alphabet letter (A–Z, a–z) or a numeric digit (0–9). Because 'B' 'W' is a valid uppercase letter, the condition is met and it returns true.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
