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);

14th Mar 2019, 2:43 PM
Rishabh Didwania
Rishabh Didwania - avatar
2 Réponses
+ 1
Boolean
14th Mar 2019, 10:05 PM
Kubra Yildiz
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).
15th Mar 2019, 12:20 AM
Denise Roßberg
Denise Roßberg - avatar