I just want to know what is the work of(java.io.Seri alizable),how can i use it ?
what does the ( java.io.Serializable) do?
Collapse
X
-
To add to chaarmanns answer: The interface itself has no functionality and it defines no functions that have to be implemented. It is what you call a marker interface; classes can implement it and thereby say "you can serialize me and everything inside me (that I haven't explicitly marked otherwise)". The latter is not enforced but expected by some tools.
To learn more about the Serializable interface, I'd recommend reading the JavaDoc.Comment
Comment