I refer to ObjectStreamConstants.STREAM_MAGIC
in the interface ObjectStreamConstants
, which is defined in the JDK source like so:
/**
* Magic number that is written to the stream header.
*/
final static short STREAM_MAGIC = (short)0xaced;
What is significance of this magic number, and how is it related to Java serialization?
Is there any particular reason that it is a short
and has the value 0xaced
? I've tried to find more information, but I didn't get anything that helped me understand better.