Return data type of isLetter – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  

Login
[lwa]



Exam Questions-ICSE2015-03A #JAVA#3970    siteicon   siteicon  

Problem Statement - Return data type of isLetter

State the data type and the value of y after the following is executed :

char x = '7';
y = Character.isLetter(x);

Solution

TC++ #3970

char x = ‘7’;
y = Character.isLetter(x);

The isLetter method of Character wrapper class returns a boolean data type.
The value of y would be false as the ‘7’ is numeric and not a letter.


Share

sunmitra| Created: 22-Mar-2018 | Updated: 16-Apr-2019|ICSE2015









Back