Java Precedence - Casting and Bitwise Operators
问题 I am having a hard time understanding some code that shows an example how a double in Java could be transformed into a byte[] and vice versa. Here is the code being used to transform a double into a byte[]: public static byte [] doubleToByteArray (double numDouble) { byte [] arrayByte = new byte [8]; long numLong; // Takes the double and sticks it into a long, without changing it numLong = Double.doubleToRawLongBits(numDouble); // Then we need to isolate each byte // The casting of byte (byte