I want to write my own marker interfaces like java.io.Serializable or Cloneable which can be understandable to JVM. Please suggest me the implementation procedure.
For example I implemented a interface called NotInheritable and all the classes implementing this interface has to avoid inheritance.
Then you can for example have method taking only
MyMarkerInterfaceinstance:or check with
instanceofat runtime.