Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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
Explanation: valueOf() returns true if the specified string contains “true” in lower or uppercase and false otherwise.

Join The Discussion