Computer Applications

What will be the output for:

System.out.print(Character.toLowerCase('1'));
  1. 0
  2. 1
  3. A
  4. true

Java Library Classes

ICSE Sp 2024

43 Likes

Answer

1

Reason — In Java, the Character.toLowerCase(char ch) method is used to convert a given character to its lowercase equivalent, if one exists. If the character is already in lowercase or there is no lowercase equivalent, it will return the original character.

Answered By

22 Likes


Related Questions