+ 2

Anyone know the interface "serializable"? and what is this for?

5th May 2016, 6:29 PM
Esdras Antero
Esdras Antero - avatar
3 Answers
+ 3
Serializable is an empty interface (a.k.a marker interface) that is used to "mark" a class as serializable. This means that the state of that class's object can be stored into a file which can be used later either by the same machine or a different machine even after the running machines JVM is shut down. This basically persists the object state across programs and machines. I hope this clears your doubt. :)
24th Jun 2016, 1:20 PM
22nd Jun 2016, 6:06 PM
pobock brasil
pobock brasil - avatar
It makes that java class "savable"
23rd Jun 2016, 2:14 PM
manny kung
manny kung - avatar