can we write custom marker interfaces
<p>I want to write my own marker interfaces like <code>java.io.Serializable</code> or <code>Cloneable</code> which can be understandable to JVM. Please suggest me the implementation procedure.</p>

<p>For example I implemented a interface called <code>NotInheritable</code> and all the classes implementing this interface has to avoid inheritance. </p>

<p>Thanks,<br>
Anil Kumar C</p>
