java - Does serialization apply to other object instances that are not defined as serializable? -


if have main class, serializible , create instances of other classes (no inheritance) not defined being serializible, state of classes preserved along state of main class, if not static? know constructors of other objects bypassed, states? , yes, did search , google, came out empty handed, hope nice gent clear me.

if there reference object not serializable, notserializableexception thrown.

when traversing graph, object may encountered not support serializable interface. in case notserializableexception thrown , identify class of non-serializable object.

source: https://docs.oracle.com/javase/7/docs/api/java/io/serializable.html

you may work around it, answers on suggest, e.g. java serialization non serializable parts


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -