File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Groovy and the fly likes what is Groovy? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Bookmark "what is Groovy?" Watch "what is Groovy?" New topic

what is Groovy?

Grega Leskovšek
Ranch Hand

Joined: Nov 13, 2008
Posts: 76
Is Groovy a virtual machine, a compiler or separated new subversion of Java or all together before said?
And why should I use it?

--Always, Grega from Peace refuge
Kenneth A. Kousen
gunslinger & author
Ranch Hand

Joined: Sep 18, 2002
Posts: 99
Groovy is a programming language that compiles to byte codes that are interpreted by the Java virtual machine. It's the evolutionary next step for Java -- it vastly simplifies Java coding, and goes beyond standard Java to things Java doesn't normally do. Of all the non-Java languages that work on the JVM, Groovy is the easiest to learn and has the tightest integration with existing Java classes.

The message board this week is full of examples of when and where to use Groovy.

Kenneth A. Kousen, Ph.D. (assorted certs), President, Kousen IT, Inc.
Author of Making Java Groovy -
Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
Grega Leskovšek wrote:And why should I use it?

If you want to give it a try, I think using it for automated testing is a great idea because it's not production code so there's less pressure while you're still learning, and you get useful test showing your code works as expected. If you use Spock (a Groovy based testing framework compatible with JUnit) then you can do some Behavior Driven Development which can be used to show the business folks that their wishes are being implemented too.


SCJP, SCJD, SCEA 5 "Any sufficiently analyzed magic is indistinguishable from science!" Agatha Heterodyne (Girl Genius)
I agree. Here's the link:
subject: what is Groovy?
It's not a secret anymore!