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 / chellammal
Implementing Serializable interface signifies that the
object can be persisted. Otherwise, when you try to
use writeObject, it will throw
java.io.NotSerializableException
| Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
What is abstract class? Explain
What is entry set in java?
What does @override mean?
What is regex in java?
Explain the JDB in depth & command line.
What does localhost mean?
Why arraylist is not synchronized in java example?
Why do we declare a class static?
How many types of string data types are there?
Is stringwriter thread safe?
What is role of void keyword in declaring functions?
Why is java logo a cup of coffee?
how to write a program for sending mails between client and server
Which method must be implemented by all threads?
Why char array is favored over string for the storage of passwords?