Use of Marker Interface in java

Marker interface means , interface which has no methods.Then what is the necessity of its usage.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.

Related:
Notice to our Readers
We're now using social media to take your comments and feedback. Learn more about this here.