Java Character isJavaLetterOrDigit() MethodThe isJavaLetterOrDigit(char ch) method of Character class determines whether the given(or specified) character can be a part of Java identifier as other than the first character. A character is a part of Java identifier if and only if any of the following conditions is true:
SyntaxParameterch: It is the character that needs to be tested. Return ValueThe isJavaLetterOrDigit(char ch)method returns a Boolean value i.e. true if the given(or specified) character is a part of Java identifier. Otherwise, the method returns false. Example 1Output: The result for the first character is given as:true The result for the second character is given as:true The result for the third character is given as:true. Example 2Output: The result for the first character is given as:true The result for the second character is given as:true The result for the third character is given as:true Example 3Output: The result for the first character is given as:true The result for the second character is given as:false The result for the third character is given as:true Next TopicJava-character-isletter-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India