0
What will be the data type and value of y after execution of the following
char x='7'; y=Character.isLetter(x); System.out.println(y);
2 Réponses
+ 1
Boolean
0
isLetter() --> this method checks if a character is a letter or not.
character = letter --> return true
character != letter --> return false
So output = true (x is a letter).