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
What is a singleton puppy?
How to create a fecelet view?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
What is bool mean?
Explain about main thread in java?
What is difference between float and double?
does java support pointers?
Why should we use singleton pattern instead of static class?
How many types of assembly languages are there?
What are thread priorities and importance of thread priorities in java?
Tell me about different OOPS concepts.
Does hashset allow duplicates in java?
Write a program to solve producer consumer problem in java?
What are variable arguments or varargs?
What is indexof in java?