serialization - What kind of objects get serialized and why? When would I use this? -


i understand serialized is. not know when use it. have seen discouraged practice of session data in database , things other not know.

what kind of objects state save in database, file system, needs persistence? why use non-"permanent" reason?

i not have context per se. client server web apps. may use java stack it, i'd understand part of things, should need it.

i have asked similar questions. i'm not understanding.

in sentence, using generic serialiser reasonable way save stuff disk, move stuff on network in manner doesn't require design data format, write code emits data in format, , write parser format (all error-prone) hand.

any time want persist object (or object hierarchy) beyond existence inside single execution on single machine, going want serialise , deserialise.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -