Groovy is an actively used programming language created in 2003.

16Years Old 36,506Users 39Jobs

Example code from the Hello World Collection:

// Hello World in Groovy

println "Hello World"

Example code from Linguist:

#!/usr/bin/env groovy
println "Groovy!"

Example code from Wikipedia:

class Bird implements FlyingAbility {} /* Adds the trait FlyingAbility to the Bird class capabilities */
def bird = new Bird() /* instantiate a new Bird */
assert == "I'm flying!" /* the Bird class automatically gets the behavior of the FlyingAbility trait */

Last updated February 11th, 2019