Answers

Question and Answer:

  Home  Java Software Engineer

⟩ Explain me how are Annotations better than a Marker Interfaces?

Annotations lets one achieve the same purpose of conveying metadata about the class to its consumers without creating a separate type for it. Annotations are more powerful, too, letting programmers pass more sophisticated information to classes that “consume” it.

 132 views

More Questions for you: