DevOps / Apache Groovy Interview questions
What are GroovyBeans?
A GroovyBean is Groovy's simplified version of a JavaBean: declaring a field as a class property (without explicit private/getter/setter boilerplate) automatically generates a public getter and setter for it at compile time.
For example, class Person { String name } automatically gets getName() and setName(String) generated, without writing them by hand, while still behaving like a normal JavaBean to any Java code that calls those methods.
This removes a large amount of Java's characteristic boilerplate for simple data-holding classes, while still producing bytecode that's fully compatible with frameworks expecting standard JavaBean getter/setter conventions.
More Related questions...