java - Why does ObjectOutputStream.writeObject not take a Serializable? -


why objectoutputstream.writeobject(object o) not take serializable? why taking object?

this because writeobject in objectoutputstream overrides the method in the objectoutput interface not require object serializable.

the objectoutput interface specifies methods allow objects written stream or underlying storage, may achieved process other serialization. objectoutputstream implements functionality, requires serializable objects. however, cannot modify signature of interface implements.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -