Monday, 6 November 2017

jav important problems for exams



Question 03
What is the output of the following
System.out.println("isDigit('r') is " + Character.isDigit('r'));
Output
Output is
isDigit('r') is false

Question 04
What is the output of the following:
System.out.println("isDigit(3) is " + Character.isDigit('3'));
Output
Output is
isDigit(3) is true
Question 05
What is the output of the following:
System.out.println("isupperCase(w) is " + Character.isUpperCase('w'));
Output
Output is
isupperCase(w) is false
Question 06
What is the output of the following:
System.out.println("isupperCase(P) is " + Character.isUpperCase('P'));
Output
Output is
isupperCase(P) is true
Question 07
What is the output of the following:
System.out.println("isLowerrCase(P) is " + Character.isLowerCase('P'));
Output
Output is
isLowerrCase(P) is false
Question 08
What is the output of the following
System.out.println("isLowerrCase(z) is " + Character.isLowerCase('z'));
Output
Output is
isLowerrCase(z) is true

No comments:

Post a Comment