Complete Groovy script Tutorials, Software, IDE, interview Questions, Jobs

What is Groovy Script? 

Groovy is a flexible open source language ,built for the Java Virtual Machine (JVM) with java like syntax. It can be used dynamically or statically typing. It supports functional programming constructs, including first-class functions, carrying and more. It supports multiple inheritance, type inference and meta programming.

Groovy is an optionally typed, dynamic language for the Java platform with many features that are inspired by languages like Python, Ruby, and Smalltalk, making them available to Java developers using a Java-like syntax.

Groovy is an object oriented language which is based an java platform. Groovy is distributed via the Apache Licence V 2.0. The Groovy first version release on 02 Jan 2007. 

Why use Groovy Script is

  • Groovy compiles to java byte code , so you can use in anywhere you use java.
  • Groovy is an optionally typed dynamic language for the Java Virtual Machine.
  • It builds upon the strengths of java but has additional power features inspired by languages like Python, Ruby and Smalltalk.
  • It provides the ability to statically type check and statically compile your code for robustness and performance.
  • Supports Domain specific and other compact syntax so your code is easy to read and maintain.
  • This Groovy build scripts easy with its powerful processing primitives, object-oriented abilities.
  • Simplifies testing by supporting unit testing and mocking out-of the box.
  • It Integrates with all existing java classes and libraries.

Features of Groovy Script

  • Groovy is very simple for java developers, since the syntax for java and Groovy similar.
  • Groovy support for both static and dynamic typing.
  • It support for operator overloading.
  • Have Native support for regular expression.
  • Have Native syntax for lists and associated arrays.
  • It support various markup languages such as HTML , XML.
  • All existing java libraries are directly use
  • Now new Groovy extends the java.lang.Object 
  • It has many features related to Syntax rules: Clousers, dynamic typing, meta programming (via metaClass) , optional semicolons, regex support, operator overloading , GString and more.

Groovy Script Free Tutorials and pdf files

  • Groovy Script Tutorials from tutotorials point Click Here
  • Groovy Script Tutorials for Beginners Click Here 
  • Groovy Tutorials from TutorialsTpoint site Click Here
  • Official Groovy website given some preferred books See Here
  • Pdf book - here listed 101 Scripts for Groovy programming Click Here
  • Programming Groovy online read or download entire book code Click Here
  • Groovy documentation - online documentation about Groovy script Click here
  • Learning Groovy 3: Java-based Dynamic Scripting  book download Click Here
  • Programming Groovy: pdf file online read book Click Here

How to Install Groovy Software

There are two common ways to install Groovy in your system.

(1) Download : The Groovy binary can be downloaded on the download page of the Groovy website. You can unpack archeve and add path to %GROOVY_HOME% /bin/groovy.bat to the PATH system environment variable, here %GROOVY_HOME%  is the directory where Groovy is unpacked.

These instructions describe how to install a binary distribution of Groovy:

  • Download a binary distribution of Groovy and unpack it into some folder on your local file system.

  • Set your GROOVY_HOME environment variable to the directory where you unpacked the distribution.

  • Add GROOVY_HOME/bin to your PATH environment variable.

  • Set your JAVA_HOME environment variable to point to your JDK. On OS X this is /Library/Java/Home, on other unixes its often /usr/java etc. If you’ve already installed tools like Ant or Maven you’ve probably already done this step.

You should now have Groovy installed properly. You can test this by typing the following in a command shell:

groovysh

Which should create an interactive groovy shell where you can type Groovy statements. Or to run the Swing interactive console type:

groovyConsole

To run a specific Groovy script type:

groovy Helloworld.groovy
(2) SDKMAN : This option has grown quickly and makes multiple version of Groovy. This option works very well on Linux and MAC OS, but requires Cygwin on windows OS.

For Software development Kit (SDKMAN) Click Here

Groovy script IDE (integrated Development Environment)

(1) IntelliJ IDEA plug-in

JetBrains, the company behind IntelliJ IDEA, was the first to provide a compelling Groovy plug-in for its  commercial IDE under the name JetGroovy, The Groovy language support comes with the free open source IntelliJ IDEA Community Edition, and the Grails/Griffon support comes with the Ultimate Edition.

(2) NetBeans IDE plug-in

NetBeans IDE is an open source IDE sponsored by Oracle. Groovy support is a main focus for NetBeans since version 6.5. Since then, Groovy is part of the standard Java distribution of NetBeans IDE.
NetBeans 8.0, the current version, has good support for Groovy, Grails, Gradle, and Griffon.

(3) Eclipse plug-in

The Groovy plug-in for Eclipse has a long tradition and has gone through a number of changes. 

(4) Online you can type, compile and run with GroovyIDE click Here

(5) Another Online Editor for Groovy Script typing , compile and run with TutorialsPoint Click Here

(6) Next Online editor for compile and execute Groovy Script Click Here

(7) ideone site is an online editor to run number of languages, one of Groovy script also run, Click Here

Groovy Script interview Questions with Answers

  • Top Groovy script interview Questions with Answers Click Here
  • From guru99 website given Groovy script interview Questions with answers Click Here
  • Most frequently asked groovy interview questions with answers Click Here
  • 50 Groovy interview Questions with answers Click Here
  • Best 90+ Groovy interview Questions with answers listed here Click here
  • 20 Groovy interview Questions and answers Click Here
  • 100 Top Groovy job interview Questions with answers Click Here
  • Top 30 Groovy Interview Questions and answers Click Here

Jobs for Groovy Programming

  • Naukri offers 44000+ jobs on Groovy See here
  • 1000+ jobs on Groovy based offered by linkedIn Click Here

0 Comments:

Post a Comment