How can you make a class serializable in java?



How can you make a class serializable in java?..

Answer / Mohammad Kashif Ali

To make a Java class serializable, it must implement the Serializable interface. No methods are required for this interface.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Why we override equals() method?

1 Answers  


java is puerly object oriented or not ?

5 Answers  


we cannot create an object of interface but we can create a variable of it

1 Answers  


what is the purpose of method overriding in java where v r completely re-defining a inherited method instead y can't v create a new method and define.If the question is very silly plz excuse me and do reply.Thank U!

7 Answers   emc2, Kumaran Systems,


Difference between an argument and a parameter?

10 Answers   Accounting, HCL, IBM, Quinnox,


What is the purpose of extern variable?

1 Answers  


Difference between static synchronization vs. Instance synchronization?

1 Answers  


what are the differences between final,finally,finalize methods?

14 Answers   IBM,


Why Java is a platform independent language?

6 Answers   Wipro, Zensar,


What are classloaders?

1 Answers  


Why java Don't Support Multiple interitence

8 Answers   ABC, Exilant, IBM,


Can java run on google chrome?

1 Answers  


Categories