Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain how you can include a groovy script in another groovy?



Explain how you can include a groovy script in another groovy?..

Answer / Ashvin Yadav

To include one Groovy script within another, you can use the `@GroovyScript` annotation or the `newgroovy.util.GroovyShell` class. With the annotation, you place the included script as a separate .groovy file and import it using the `import` keyword. With `GroovyShell`, you load the included script dynamically.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Groovy Interview Questions

What is the limitation of groovy?

1 Answers  


Why you use groovy?

1 Answers  


Explain how groovy string is expressed?

1 Answers  


Explain how you can include a groovy script in another groovy?

1 Answers  


What is groovy?

1 Answers  


What are some features does groovy jdk offers?

1 Answers  


What does the jsonslurper class indicates?

1 Answers  


What command is used to refresh dependencies?

1 Answers  


What is a template in grails?

1 Answers  


Explain how you can build ast (abstract syntax trees) in groovy from string?

1 Answers  


What is the role of closure and listeners in groovy?

1 Answers  


List the advantages of groovy.

1 Answers  


Categories