There is also a byte data type , And it's the basic type .java byte It's handled as the smallest number , So its value field is defined as -128~127,
byte, The byte , from 8 Binary composition of bits . stay Java in ,byte The type of data is 8 A signed binary number .
In the computer ,8 The value range of bit signed binary numbers is [-128, 127], So in Java in ,byte The value range of the type is also [-128, 127].
c# Of byte The boundary value is ：0~255,
java Of byte The boundary value is ：-128~127. When byte >=0 && byte <127 when , Both sides are equal .
therefore ：java Of byte Turn into C# Recognizable byte when , If byte<0, (byte+ 256) That is to say C# Recognizable byte.（ Make an equation ：java +256= C# be java = C#-256. If the conditions are met java<0,java>=-128 ,.........