Process « serialize « Java I/O Q&A

1. Java (de)serialization process

I am curious to know what happens when we de-serialize an object. For example if my class object is composed of many other objects, how does the object creation process ...

2. Serialize XML processing instruction before root element

I have the following code, that inserts the processing instructions before root element:

Document doc = builder.parse(file);

            doc.createProcessingInstruction("xml-stylesheet", "type=\"text/xsl\" href=\"annotation.xsl\""),

3. serialization process

4. Regarding serialization process