Computer Applications
Write the output of the following:
- System.out.println(Character.isUpperCase('R'));
- System.out.println(Character.toUpperCase('j'));
Java
Java Library Classes
ICSE 2011
16 Likes
Answer
- true
- J
Answered By
7 Likes
Related Questions
A student is trying to convert the string present in x to a numerical value, so that he can find the square root of the converted value. However the code has an error. Name the error (syntax / logical / runtime). Correct the code so that it compiles and runs correctly.
String x= "25"; int y=Double.parseDouble(x); double r=Math.sqrt(y); System.out.println(r);Differentiate between boxing and unboxing.
State the data type and value of res after the following is executed:
char ch = '9'; res= Character.isDigit(ch);Predict the output of the following code snippet:
char ch='B', char chr=Character.toLowerCase(ch); int n=(int)chr-10; System.out.println((char)n+"\t"+chr);