Java / Lombok Interview questions
How does delombok work and when would you use it?
delombok runs Lombok's own transformation logic but, instead of feeding the result to the
compiler, writes out the fully expanded, plain-Java equivalent source code — every getter, setter,
constructor, and other generated method spelled out explicitly, with no Lombok annotations remaining.
java -jar lombok.jar delombok src/main/java -d src/main/delomboked
Common reasons to use it:
- Generating Javadoc — the standard Javadoc tool doesn't understand Lombok annotations, so running delombok first produces source Javadoc can actually process and document correctly.
- Debugging exactly what Lombok generated, without guessing from the annotation alone.
- Removing a Lombok dependency from a project — delomboking the whole codebase gives you a starting point of equivalent plain Java to work from, rather than hand-writing every generated method from scratch.
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...
