Javatpoint Logo
Javatpoint Logo

Java Byte doubleValue() method

The doubleValue() method of Java Byte class returns a double value for this Byte after a widening primitive conversion.

Syntax:

Parameters:

NA

Overrides

This method is specified by doubleValue in class Number

Return Value

This method returns the numeric value of this object after conversion to type double.

Example 1

Test it Now

Output:

Double value : 98.0
Double value : 102.0

Example 2

Test it Now

Output:

 -128.0
127.0

Example 3

Test it Now

Output:

Error:(7, 39) java: byte cannot be dereferenced

Next TopicJava Byte





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA