Can anyone please explain me what a marker interface is? I will be very thankful in case you provide the following: 1)An example marker interface named as User? 1)Small example of a class which implements a User marker interface.
This questions has been asked many, many times. Please use the Search link at the top of the page to find the previous discussions. This FAQ entry is also relevant.