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 about interrupt() method of thread class ?
How do you add an element to a hashset in java?
What are different types of multitasking?
Is an integer an object?
Explain about method local inner classes or local inner classes in java?
What is the best way to findout the time/memory consuming process?
What are the features of java?
How is garbage collection controlled?
What a static class can contains?
How does indexof work?
What will be the default values of all the elements of an array defined as an instance variable?
Are static members inherited to sub classes?
What is a pattern what is an anti pattern?
Which are different kinds of source code?
Name few java.lang classes introduced with java 8 ?