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.

Recommended
Join the discussion
Be the first to comment on this article. Our Commenting Policies
See more