Demystifying Java-Groovy Integration

NFJS, the Magazine - April 2012

You’d be excited about Groovy for its expressive, lightweight, fluent and concise nature. The reality is, Groovy code has to live and thrive among Java code. You probably read that one of the strengths of Groovy is its integration with Java. How strong is that? Can you create a Groovy closure from Java and invoke methods that take it? How about calling methods that are dynamic, those that don’t exist during compile time? You’ll find the answers to these questions in this article.

An online version of this article is not available. This article is available in PDF, MOBI, and EPUB to those who have subscribed.

About Venkat Subramaniam

Venkat Subramaniam

Founder of Agile Developer, Inc.

Dr. Venkat Subramaniam is an award-winning author, founder of Agile Developer, Inc., creator of, and an instructional professor at the University of Houston.

He has trained and mentored thousands of software developers in the US, Canada, Europe, and Asia, and is a regularly-invited speaker at several international conferences. Venkat helps his clients effectively apply and succeed with sustainable agile practices on their software projects.

Venkat is a (co)author of multiple technical books, including the 2007 Jolt Productivity award winning book Practices of an Agile Developer. You can find a list of his books at You can reach him by email at or on twitter at @venkat_s.

NFJS, the Magazine - April 2012

NFJS the Magazine - April 2012

In this Issue: