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
How can a gui component handle its own events?
How do you allocate memory to object?
Can we use catch statement for checked exceptions?
Can we call thread start () twice?
What is the intersection and union methods?
Can we have 2 main methods in java class?
explain copyonwritearraylist and when do we use copyonwritearraylist?
What is the difference between normal report & matrix report?
What is scanner in java?
Can we override protected method in java?
What does this () mean in constructor chaining concept?
Tell me are there implementations for sorting and searching in the java libarary?
What are the java ide’s?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
What is difference between classpath and path variables in java?