1.

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» Right answer is (a) valueOf()

Best explanation: valueOf() returns true if the specified string contains “true” in lower or uppercase and false otherwise.


Discussion

No Comment Found

Related InterviewSolutions