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 port number in java?
What are the 6 boolean operators?
Can we make main() thread as daemon?
What happens when main () method is declared as private?
What is parsing a sentence?
Are arrays static in java?
How can constructor chaining be done by using the super keyword?
What is overriding in java?
why java uses class level type casting ?
What is == mean?
What 5 doubled?
When can we say that threads are not lightweight process in java?
Can we have a try block without catch block?
What is final keyword in java?
What is oop principle in java?