I dont understang wat is nee dof tag interface

Recommended Answers

All 2 Replies

are you talking about this one?

You may be thinking of interfaces like Serializable that have no methods. When you declare a class as implementing Serializable all you are doing is announcing that your class can be safely serialised. Such interfaces are caled "tag" interfaces because they tag a class as having some attribute that the language itself doesn't support.
They are really a nasty fix from the days before Java had annotations. If annotations had been there from the start you would just have a @Serializable annotation on your class.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.