1.

Explain How Scripts Are Run In Groovy?

Answer»

Groovy supports plain script; it does not require a class DECLARATION. At the front of the script, imports are supported at the same WAY that it can be at the front of a class. In Groovy, you have to USE word def to declare a function OUTSIDE of a class.

Groovy supports plain script; it does not require a class declaration. At the front of the script, imports are supported at the same way that it can be at the front of a class. In Groovy, you have to use word def to declare a function outside of a class.



Discussion

No Comment Found