Computer Applications
Find the output of the following program snippet:
char ch = '*';
boolean b = Character.isLetter(ch);
System.out.println(b);
Java
Java Library Classes
65 Likes
Answer
false
Working
As Asterisk (*) is not a letter so Character.isLetter()
method returns false.
Answered By
38 Likes
Related Questions
State whether the following statement is True or False :
Class is a composite data type.
State whether the following statement is True or False :
Integer.toString() converts integer data to String.
Find the output of the following program snippet:
char c = 'A'; int n = (int) c + 32; System.out.println((char)n);
Find the output of the following program snippet:
String s= "7"; int t =Integer.parseInt(s); t=t+1000; System.out.println(t);