Java Byte floatValue() methodThe floatValue() method of Java Byte class returns a float value for this Byte after a widening primitive conversion. Syntax:Parameters:NA Specified byThis method is specified by floatValue in class Number Return ValueThis method returns the numeric value of this object after conversion to type float. Example 1Test it NowOutput: Float value : 98.0 Float value : 102.0 Example 2Test it NowOutput: -128.0 127.0 Example 3Test it NowOutput: Error:(8, 39) java: byte cannot be dereferenced Next TopicJava Byte |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India