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 / aman kr aggarwal
well if we dont use Serializable interface which is a
marker interface, then the object which we want to
serialize and use writeObject() method then compiler would
throw exception as if other object which r related to that
object if not serialized.
So. to overcome this we have to use Seializable interface.
Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
What is singleton service?
What is compiler and what its output.
What is struts in java?
What technique can be employed to compare two strings?
How do you insert a line break?
Can we call thread start () twice?
What is the difference between class & structure?
Can a static block throw exception?
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.
What are the benefits of operations?
Write a program to check for a prime number in java?
I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in
Tell us something about an iterator.
Is alive and join method in java?
What is xslt in java?