Java Byte doubleValue() methodThe doubleValue() method of Java Byte class returns a double value for this Byte after a widening primitive conversion. Syntax:Parameters:NA OverridesThis method is specified by doubleValue in class Number Return ValueThis method returns the numeric value of this object after conversion to type double. Example 1Test it NowOutput: Double value : 98.0 Double value : 102.0 Example 2Test it NowOutput: -128.0 127.0 Example 3Test it NowOutput: Error:(7, 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