Java / Lombok Interview questions
What are the types of Lombok annotations?
Lombok's annotations fall into two broad groups, reflected in their package names.
| Core (lombok.*) | Experimental (lombok.experimental.*) |
| Stable, well-established annotations: @Getter, @Setter, @Data, @Builder, @ToString, @EqualsAndHashCode, and similar. | Newer or more situational features whose API may still change: @Accessors, @FieldDefaults, @Delegate, @UtilityClass, and others. |
| Safe to rely on for long-term stability. | Usable, but expect more possibility of behavior/API changes across Lombok versions. |
import lombok.Getter; // core import lombok.experimental.FieldDefaults; // experimental
The distinction is mainly a signal about stability and maturity rather than a hard functional boundary — experimental annotations work fine in practice, but Lombok's maintainers reserve more freedom to change their behavior across versions than they would for the long-stable core set.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
