oop - In Java serialisation why does J signify a long and L signify an Object? -
when serialise object in java, letter j used signify next bytes represent long
, letter l used signify object
next, why? why not utilize o object
, l long
?
these letters choosen because of conflicts. guesswork of conflicts:
c taken char. so, used l class.
l taken class. so, used j long.
b taken byte. so, used z boolean.
by way, 'l' doesn't mean 'object', 'fully-qualified-class'.
java oop serialization
No comments:
Post a Comment