Marker Interfaces and Annotations in java
we all know marker interface – An interface with no methods. Example: Serializable, Remote, Cloneable. The marker interface also defines a type. It can thus be used in method signatures. For example, Hibernate’s Session.get() method takes a Serializable as argument. It avoids passing a primary key that would not be serializable as argument. Note that…
Marker Interfaces and Annotations in java was originally published on











