adplus-dvertising
frame-decoration

Question

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).valueOf()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of these methods is used to know whether a string contains “true”?

Similar Questions

Discover Related MCQs

Q. Which of these class have only one field?

Q. Which of these class contains all the methods present in Math class?

Q. Which of these method return a pseudorandom number?

Q. Which of these method returns the remainder of dividend / divisor?

Q. Which of these method converts radians to degrees?

Q. toRadian() and toDegree() methods were added by which version of Java?

Q. Which of these classes encapsulate runtime environment?

Q. Which of the following exceptions is thrown by every method of Runtime class?

Q. Which of these methods returns the total number of bytes of memory available to the program?

Q. Which of these Exceptions is thrown by loadClass() method of ClassLoader class?

Q. Which of these classes encapsulate runtime state of an object?

Q. Which of these methods returns the class of an object?

Q. Which of these methods return a class object given its name?

Q. Which of these class defines how the classes are loaded?

Q. Which of the interface contains all the methods used for handling thread related operations in Java?

Q. Which of these class is used to make a thread?

Q. Which of this interface is implemented by Thread class?

Q. Which of these methods of a Thread class is used to suspend a thread for a period of time?

Q. Which object Java application uses to create a new process?

Q. Which of the following is true about Java system properties?