Online Java Compiler By
JavaTpoint.com
public class JavaByteToUnsignedIntExample3 { public static void main(String[] args) { byte b1=Byte.MIN_VALUE; //Converts the argument to an int by an unsigned conversion int val=Byte.toUnsignedInt(b1); //unsigned value for MIN_VALUE System.out.print("Unsigned Int value for "+b1+" : "+val); System.out.println(val); } }
Output