What is the use of valueOf( ) method?

A) It converts data from its internal format into a human-readable form.
B) It converts integer value to string
C) It converts string to int value
D) None of the above

Showing Answers 1 - 2 of 2 Answers

parthu

  • Feb 20th, 2006
 

valueOf() method is used to convert String into Integer Object if we are calling this method like Integer.valueOf("34");

Float f=Float.valueOf("45.67");

So answer is

None of the above

  Was this answer useful?  Yes

xxx

  • Sep 10th, 2006
 

whats wrong in the ans

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions