DevOps / Apache Groovy Interview questions
What is a GDK in Groovy?
The Groovy Development Kit (GDK) refers to the extra methods Groovy adds onto existing Java classes - like String, Collection, and File - without modifying the JDK classes themselves, through Groovy's metaprogramming mechanisms.
For example, standard Java's List doesn't have an each method, but thanks to the GDK, any Java List used from Groovy code gains each, collect, find, and many other convenience methods automatically.
This means Groovy code working with plain Java objects from any Java library still gets access to Groovy's more expressive collection and string methods, without those Java classes ever being rewritten.
More Related questions...