Answer Posted / bindhu
The class whose instances are to be serialized
should implement an interface Serializable. Then pass the
instances to the ObjectOutputStream which is connected to a
FileOutputStream. This will save the object to a file...
When an object ios serialized, all the included
objects are also serialized along with the original object.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What is try-with-resources in java?
What are thread safe functions?
What is the use of protected in java?
What are the differences between the constructors and methods?
What is class and object in java?
Can you override private or static method in java?
What is the purpose of tostring() method in java?
Explain the importance of import keyword in java?
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?
What is the difference between JVM and JRE?
Is Java a dying language?
What are actual parameters?
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
What is an empirical question?
Difference between method overloading and method overriding in java ?