- Interfaces with no methods are known as marker interfaces.
- Marker interfaces are Serializable, Clonable, SingleThreadModel, Event listener.
- Marker interfaces are also called "tag" interfaces.
- All null interfaces are marker interfaces but all markers are not necessary to be null interfaces.
Uses:
- I read "it tells the compiler that it should be treated differently ".
- "It is used to store state of an object". what is mean by "storing state of an object.
Note: A class implementing null interface, the behavior of object will not change.