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 / rohit
Serializable concept is related with the state persisitence
of the object.
Example:---
When u send the some object on internet it needs to be
serialized bcz before sending the object it first converted
in to byte & desrerialization is the process is used to get
it back in its original form
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Explain list interface?
Can list be null in java?
Can we use different return types for methods when overridden?
Which is faster call by value or call by reference?
What is nan inf?
how to create multithreaded program? : Java thread
What is int argc char * argv?
Which variables are stored in stack?
What is replacefirst in java?
What is a local block?
How listener identify that the event came from a particular object?
What happens if constructor is private?
What does this mean java?
What is an interface in java? Explain
Give me some null interfaces in java?