English

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

Advertisements
Advertisements

Question

State the data type and value of y after the following is executed: char x = 7; y = Character.isLetter(x); 

Answer in Brief

Solution

y = false.
data type of y is boolean.

shaalaa.com
Introduction of Values and Data Types
  Is there an error in this question or solution?
Chapter 2: Library Classes - Review Insight [Page 175]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 2 Library Classes
Review Insight | Q 1. | Page 175
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×