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
Can we create our own daemon thread?
What are the differences between stringbuffer and stringbuilder?
How dead lock situation occurs in java and how you can identify it?
What is difference between word and integer?
Explain the difference between comparator and comparable in java?
Is string thread safe in java?
Are primitives objects?
Can we increase array size dynamically in java?
What is the difference between jdk and jre?
What is the list interface in java programming?
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.
Is zero a positive integer?
What is java object name?
What is purpose of keyword void?
What are the java ide's? Explain