char ch = '9'; res= Character.isDigit(ch);
42 Likes
Data type of res is boolean as return type of method Character.isDigit() is boolean. Its value is true as '9' is a digit.
Answered By
22 Likes
What is the method to check whether a character is a letter or digit?