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 are the Class Libraries ?
What is the default value of byte datatype in java?
What is a module function?
Can a variable be local and static at the same time?
List out benefits of object oriented programming language?
What is variable explain?
How does split work in java?
What one should take care of, while serializing the object?
We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.
What are the advantages of encapsulation in java?
Is final static java?
What is unmodifiable list in java?
Write a program to print all permutations of string?
Mention some features of java?
Can we override compareto method?