There is a number for example 115 , in the binary system this number is 01110011 , I need to declare this number as a literal so that it would be negative. I know how to do this with int , short , long , a problem in the type byte . Is it possible to initialize a variable of type byte with a literal with a negative value. What would be to see the number -115 when printing test1 ?
byte test1 = 0B01110011; int test2 = 0B11111111_11111111_11111111_10001101;