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 / th

Serializable is used

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between linkedlist and arraylist.

586


How can I become a good programmer?

486


what do you mean by classloader?

549


Can a set contain duplicates?

515


What are the benefits of immutable objects?

532






Can we declare a class as abstract without having any abstract method?

551


What are the escape sequences in java?

561


What is return used for in java?

515


How do you use equal in java?

543


Which class represents the socket that both the client and server use to communicate with each other?

565


When should a function throw an exception?

597


Can a class have more than one object?

524


How do you get length in java?

554


If an object is garbage collected, can it become reachable again?

540


What is sortedmap interface?

549