Computer Applications
What will be the output for:
System.out.print(Character.toLowerCase('1'));
- 0
- 1
- A
- 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
- Read the following text, and choose the correct answer: - A class encapsulate Data Members that contains the information necessary to represent the class and Member methods that perform operations on the data member. - What does a class encapsulate? - Information and operation
- Data members and Member methods
- Data members and information
- Member methods and operation
 
- Assertion (A): Call by value is known as pure method. - Reason (R): The original value of variable does not change as operation is performed on copied values. - Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A)
- Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion (A)
- Assertion (A) is true and Reason (R) is false
- Assertion (A) is false and Reason (R) is true
 
- Write the Java expression for (p + q)2. 
- Evaluate the expression when the value of x = 2: - x = x++ + ++x + x