Why we need to serialize the object
Answer Posted / balaji
when ever an object's state needs to be saved to retrieve it
after some time we need to serialize the object.
Serialization is the process of writing the state of an object
to the stream.
The state of an object will be available in instance variables.
| Is This Answer Correct ? | 27 Yes | 7 No |
Post New Answer View All Answers
What is the purpose of using break in each case of switch statement?
what is thread? What are the high-level thread states? : Java thread
What are default methods ?
When should we create our own custom exception classes?
Why do I need to declare the type of a variable in java?
What things should be kept in mind while creating your own exceptions in java?
Can an integer be null java?
What is a null class?
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
Can a string be null?
What do you mean by order of precedence and associativity?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
Can a variable be local and static at the same time?
What java is used for?
Does sprintf add a null terminator?