Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

How Annotations are better than Marker Interfaces?

Pragya Keshap answered on February 4, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • marker annotations in java
  • What is a Marker interface in Java? example
  • What can we use instead of Marker interface?
  • marker interface in java

  • How Annotations are better than Marker Interfaces?

    0

    Annotations serve the purpose of conveying metadata about the

    class to its consumers without creating a separate type for it.

    Annotations are more powerful than a Marker interface. They allow

    programmers to pass more sophisticated information to classes that

    "consume" it.

    https://www.javacodegeeks.com/2012/10/is-there-a-better-approach-to-marker.html#:~:text=It%20seems%20annotation%20is%20a,subclasses%20of%20the%20marked%20class.

    Popularity 1/10 Helpfulness 1/10 Language java
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 04 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.