Learning Groovy
1h 10mBeginner2020-06-25
Authors

Benjamin Muschko
Software Engineer, Consultant, and Trainer
Course details
Groovy—a powerful, easy-to-use, and widely adopted language on the Java Virtual Machine (JVM) platform—has found its way into ecosystems like Jenkins Pipelines and Gradle, as well as web development frameworks such as Grails and Micronaut. In this course, learn the basics of working with Groovy. Instructor Benjamin Muschko goes over fundamental concepts such as variables and data types, classes, and exception handling. Along the way, Benjamin establishes the connection between Java and Groovy and highlights where Groovy really shines. He also digs into more advanced concepts, including using closures, working with collections, and reading and writing files. After wrapping up this course, you'll have the basic knowledge you need to run Groovy as a script or full-fledged program.
Skills covered
GroovyLearningProgramming LanguagesSoftware Development
Concepts
Introduction
- Supercharge your Java program with Groovy
- What you should know
Getting Started
- What is Groovy
- Installing the JDK and Groovy
- Exploring the GroovyShell and Console
- Hello World
Groovy Basics
- Groovy and Java
- Variables and data types
- Classes and methods
- Conditional structures and loops
- Exception handling
- Using the GDK documentation
- Challenge - Creating and using a class
- Solution - Creating and using a class
Beyond the Basics
- Using convenience annotations
- Understanding Closures
- Working with Collections
- Reading files
- Writing files
- Challenge - Processing file contents
- Solution - Processing file contents
Conclusion
- Next steps