1
I know what serialization is and what use it is. I also know when not to use it. I’ve read item 74 of the Java Effect. My question is, what is the purpose of an empty interface, in which there is nothing to be implemented?
package java.io;
public interface Serializable {
}
Would it be just like a kind of markup? If so, when would the classes "marked" as serializable be used? And what would be the name of this marking strategy?
Related (or duplicate): What is the purpose of the Serializable interface?
– user28595
@Carlosheuberger, what is "identifying the semantics of what is being serialized"?
– dellasavia
I reopened because the question that was marked as duplicate does not have the information asked here, I searched a lot, I asked other people and talks about the
Serializable
, not because it is empty. It is only related.– Maniero