I have a question regarding "Interfaces" in Java and the question sounds like this:
What is the use of implementing a blank (empty) interface in my class?
In order to get a better understanding of the question, I will give you a concrete example:
If you go and see the implementation of "ArrayList" class, you will find out that it implements two interfaces (RandomAccess and Cloneable), which are actually totally empty!
Why is that happening? What do I win by implementing a totally blank interface for my class?
In case you have any ideas, please leave a comment.
Thank you in advance.