Q. What is the output of the following code snippet?
Code:String s1 = “Hello”; System.out.println(sA)toLowerCase());
β
Correct Answer: (A)
hello
Explanation: The toLowerCase method in Java converts a string to lowercase. In this case, sA)toLowerCase() returns “hello”.