हिंदी

Give the output of the following Character class method:Character.isLetterOrDigit('W')

Advertisements
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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: Library Classes - Exercises [पृष्ठ ३१५]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×