English

Which of the following functions checks whether a character is a blank or not? - Computer Applications

Advertisements
Advertisements

Question

Which of the following functions checks whether a character is a blank or not?

Options

  • Character.isBlankSpace()

  • Character.isWhiteSpace()

  • Character.isEmptySpace()

  • Character.isNull()

MCQ

Solution

Character.isWhiteSpace()

Explanation:

The Character.isWhitespace() function in Java determines if a given character is a whitespace character (e.g., spaces, tabs, newlines). It is used to determine whether a character is in the set of whitespace characters. 

shaalaa.com
  Is there an error in this question or solution?
Chapter 2: Library Classes - EXERCISES [Page 177]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 2 Library Classes
EXERCISES | Q I. 6. | Page 177
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×