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
Can a method be static?
Why set is used in java?
Explain the difference between map and flatmap stream operation?
Does collectionutils isempty check for null?
What are the six ways to use this keyword?
Which package is used for pattern matching with regular expressions?
What is a local, member and a class variable?
What is numel matlab?
What is null statement?
What is unmodifiable list in java?
Difference between ‘>>’ and ‘>>>’ operators in java?
What is boolean strategy?
What is java util concurrentmodificationexception?
How do you implement tree mirroring in java?
What is a for loop in java?