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