I am declearing in Java
public byte orbits = new byte;
Now if I am doing
orbits = (byte)0xFF;
orbits should get populated by 11111111 i.e FF(in hexadecimal) but instead its getting populated with -1.
This operation in C++ working perfectly
char orbits orbits = (char)0xFF;
How to replicate the similar situation in Java using byte? Thanks