Advertisements
Advertisements
प्रश्न
Give the output of the following Character class method:
Character.isLetterOrDigit('W')Advertisements
उत्तर
True
APPEARS IN
संबंधित प्रश्न
Write the memory capacity (storage size) of short and float data type in bytes.
Differentiate between if else if and switch-case statements.
State the data type and value of res after the following is executed:
char ch = ‘t’;
res=Character. toUpperCase(ch);
Write a difference between the functions isUpperCase() and toUpperCase().
int res = ‘A’;
What is the value of res?
State one difference between the floating point literals float and double.
What is the data type returned by the library function?
compareTo()
Give the output of the following code.
String A = "26.0", B= "74.0";
double C = Double.parseDouble(A);
double D = Double.parseDouble(B);
System.out.println((C+D));
Give the output of the following Character class method:
Character.toUpperCase('a')Write the value of n after execution:
char ch = 'd';
int n = ch + 5;