What's the need of marker interface when Attributes serve the purpose?

Viewed 2898

I'm a bit confused about

The purpose of Marker Interface Vs Attributes.

Their purpose looks same to me(Pardon me if I'm wrong).

Can anyone please explain how do they differ in purpose?

4 Answers
Related