Thursday, 15 May 2014

java - Why is Serializable called an interface? -


Does this really come under the definition of interface? If they were called for markers or indicators for example, would not it be easy to understand the purpose of the interface like serial jubil?

This is called an interface because it is an interface:

  Public Interface Serializable {}  

For example, would not it be easy to understand purposes such as markers or interses for indicators?

In fact, this type of interface is & nbsp; & Mdash; An interface that does not define any methods & nbsp; & Mdash; Is often called "marker interface".


No comments:

Post a Comment