gudii9
asked on
marker annotations over marker interfaces
The chief advantage of marker annotations over marker interfaces is that it is
possible to add more information to an annotation type after it is already in use, by
adding one or more annotation type elements with defaults
I was reading above staemtent. I have not understood the statement, concept behind clearly.
Please advise. Any ideas, sugestions, sample code, links, resources highly appreciated. thanks in advance
possible to add more information to an annotation type after it is already in use, by
adding one or more annotation type elements with defaults
I was reading above staemtent. I have not understood the statement, concept behind clearly.
Please advise. Any ideas, sugestions, sample code, links, resources highly appreciated. thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
so we can add new method to same interface with new annotation right without changing the code in parent interface, child classes right.please advise
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Annotations on the other hand are more flexible, and you can add extra annotations without impacting on other areas of the code.