Which of these methods is used to know whether a string contains “true”?
A. valueOf()
B. valueOfString()
C. getString()
D. None of the mentioned
Answer:A
Which of these methods is used to know whether a string contains “true”?
A. valueOf() B. valueOfString() C. getString() D. None of the mentioned
Explanation: valueOf() returns true if the specified string contains “true” in lower or uppercase and false otherwise.