Java Swing AWT Question:

Download Job Interview Questions and Answers PDF

What is the purpose of Serialization in Swings?

Swing AWT Interview Question
Swing AWT Interview Question

Answer:

Serialization is used when an object extends the Jcomponent class. The object's data in this case points out to the stream that is written or serialized and gives an output stream. This output stream can be sent through then network and it can be saved in the file if required. The serialized file can be de-serialized in the memory. This will allow the operation to continue to perform the original state functions that were getting used. The serialization used in object allows easy retrieval of the object data and easy transmission of state data from one place to another. This can also be placed in custom made storage files that provide the transfer of the components to be fast and it uses the concept of virtual machine that transfers from one machine to another machine. It uses the remote method invocation to allow the use of distributed computing that provide with some exceptions to the use of transient keyword. The components can be serialized using the classes that can pass the reference to an object using the writeObject() method of the ObjectOutputStream object this way it calls the serialization function recursively.

Download Swing AWT Interview Questions And Answers PDF

Previous QuestionNext Question
How does Accessibility works in Swings?What is the use of double buffering in swings?