Consider the following code statement.
Float f = new Float(3.14);
Choose one answer
a. f.parseFloat("2.718")
b. f.valueOf("3.1421")
c. f.byteValue()
d. f.setValue(Math.PI)
e. None of these
Answer: D.
This is a very trivial question. Based on the method names one should able to identify the operations that are performed on that object.
What is the question exactly ?
ReplyDelete