Online Java Compiler By
JavaTpoint.com
public class JavaByteDoubleValueExample1 { public static void main(String[] args) { Byte b1=98; Byte b2=102; //returns the numeric value of this object after conversion to type double. Double d1=b1.doubleValue(); System.out.println("1. Double value : "+d1); System.out.println("2. Double value : "+b2.doubleValue()); } }
Output