Introduction to Groovy for Java Developers

53 Ratings

Course Number: GRO-100
Duration: 4 days (26 hours)
Format: Live, hands-on

Groovy Training Overview

Accelebrate's Groovy for Java Developers training teaches experienced Java developers how to write programs in Groovy that simplify, enhance, and expand their existing knowledge.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • Understand optional typing, in contrast to static or dynamic
  • Work with Groovy closures
  • Use Groovy control structures
  • Build object-oriented programs in Groovy
  • Use Groovy builders to reduce complexity
  • Access databases using Groovy
  • Process XML and JSON data
  • Write unit tests in Groovy
  • Access Java classes from Groovy, and vice versa

Prerequisites

All attendees should have a good knowledge of Java techniques, including the Collections framework and JDBC.

Outline

Expand All | Collapse All

Groovy Fundamentals
  • Differences between Groovy and Java
  • Compiling and executing Groovy programs
  • The basic Groovy data types and optional typing
  • Writing Groovy scripts
  • Declaring classes
  • Overriding operators and type coercion
  • Groovy strings
  • Regular expressions in Groovy
Groovy Collections
  • Ranges
  • Lists
  • Maps
  • Iterators and polymorphic algorithms
Closures in Groovy
  • Declaring closures
  • Available options for calling closures
Groovy Control Structures
  • The "Groovy truth"
  • Conditional execution
  • Looping constructs
Using Classes and Scripts
  • Groovy fields and local variables
  • Methods and operations
  • Organizing classes in packages
  • Using inheritance
  • POGO's vs. POJO's
Unit Testing in Groovy
  • JUnit tests in Groovy
  • The assert method
  • The Spock testing framework
Miscellaneous Operators
  • Safe navigation
  • Elvis
  • Spaceship
  • Method references and closures from Java
Survey of the GDK
  • File access
  • Additional collections methods
  • URLs and networking
Database Access with Groovy
  • Basic database operations
  • Groovy and ORM solutions
Working with XML and JSON
  • Reading and parsing XML documents
  • Parsing and generating JSON
  • Working with external libraries like GSON
Simple Metaprogramming
  • The Expando class
  • Adding attributes and methods using Expando MetaClass
  • Categories
AST Transformations
  • @ToString, @EqualsAndHashCode, @TupleConstructor
  • @Canonical
  • @Delegate
  • @Immutable
  • @TypeChecked
  • @CompileStatic and @CompileDynamic
Conclusions

Training Materials

All Groovy training students receive comprehensive courseware. 

Software Requirements

  • JDK 8 or later
  • The latest stable release of Groovy
  • A powerful IDE that supports Groovy, such as Eclipse or (preferred) IntelliJ IDEA
  • Related free software and lab files; please contact us for detailed specifications


Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan