What is the need to implement Serializable interface (with
no methods) for objects which are to be serialized ?
We can write our own functionality which writes objects to
streams then why we need to implement and tell JVM that
which objects can be serialized.
Answer Posted / chellammal
Implementing Serializable interface signifies that the
object can be persisted. Otherwise, when you try to
use writeObject, it will throw
java.io.NotSerializableException
Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
Can we use a switch statement with strings?
Define a java class.
Is 0 an irrational number?
Explain about static imports in java?
Can size_t be negative?
What are the two types of java programming?
How is java created?
What happens when I use / and % with a negative numerator?
can any body body expalin best definitions & best real time exaples for opps concepts.
What is args length in java?
Why is it called a string?
What is the maximum size of array in java?
What is a condition in java?
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
what is singleton in java?