+ 2

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

5th May 2016, 6:29 PM
Esdras Antero
Esdras Antero - avatar
3 ответов
+ 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
Beardman13
0
Yep
22nd Jun 2016, 6:06 PM
pobock brasil
pobock brasil - avatar
0
It makes that java class "savable"
23rd Jun 2016, 2:14 PM
manny kung
manny kung - avatar