English

State the value of y after the following is executed: char x = '7'; y = Character.isLetter(x); - Computer Applications

Advertisements
Advertisements

Question

State the value of y after the following is executed:

char x = '7';

y = Character.isLetter(x);

Options

  • false

  • 7

  • true

  • '7'

MCQ

Solution

false

Explanation:

As a result, the Character is stored in the variable x. In y, letter(x) returns false.

shaalaa.com
Introduction of Values and Data Types
  Is there an error in this question or solution?
2021-2022 (April) Set 1
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×