answersLogoWhite

0

What does valueOf do in Java?

Updated: 8/20/2019
User Avatar

Iamanugget42

Lvl 1
12y ago

Best Answer

the valueOf method is used to convert from its original computerized format into a format understandable by humans. For example, the String object has this command overloaded so that may different types of objects can be turned into strings.

int i = 111

String i = String.valueOf(i);

The value "111" would be loaded into String i.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does valueOf do in Java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Use of valueOf function in java?

The valueOf functions are used in the Java wrapper classes to convert between types. Common uses are converting a number to a String or vice versa. You are encouraged to use these functions instead of creating a new object from a constructor because of the way Java caches values. A call to valueOf will give you the same result as creating a new object, but it may be more efficient if you're creating the same values multiple times.


How will you convert wrapper integer into primitive integer in java?

All integeral wrapper class (Byte,Short,Integer,Long)contains the following valueOf() .public static wrappertype valueOf(String s,int radix);integer I=Integer.valueOf("1010",2);output is 10....


What is the valueof a s and w 38special serial?

Nothing. You did not provide the sn.


What is the valueof a mauser hsc 7.65 1930?

$650$950 very good condition


What is the valueof a turus 357 model 66b6 handgun?

100-300 USD or so


What is the age and valueof an 1885 winder musket serial number 116875?

Requires professional appraisal.


What is peak detector?

a device which output voltage is almost the real peak valueof an applied signal


What is the VALUEof jc higgens22caliber rifle serial number 103 13800?

50-100 or so


What is the valueof the 6 in 7.360l write in ml?

The 6 place would be 60ml (the total would be 7360ml)


How do you determine the residual of sulfuric acid in water?

It may be done through measuring the pH valueof water


Estimate the valueof 146 to the nearest whole number?

This already is a whole number. You don't need to change anything.


What is the valueof a harrington and richardson 32 caliber ctge pistol serial number361256?

25-60 USD or so