What will be the data type and value of y after execution of the following | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers
+ 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