CSE MCQs :: Groovy
- What is the limitation of Groovy?
- You write a web application with groovlets. You need to get parameter of the request with name 'age' in your script. What is the best way to do this?
- How Groovy string is expressed?
- How Groovy string is expressed?
- How can we build AST (Abstract Syntax Trees) in Groovy from string?
- Explain GroovyDoc comment?
- Why Use Groovy?
- You write a web application and build it by the Gradle build tool. When you see all Gradle tasks, there isn't task 'war'. What a problem may it be?
- Mention the features offered by groovy JDK.
A.
The collection of literals. The literal syntax and its initialization are natural and highly readable unlike java in which they are cumbersome and unpleasant.
|
B.
The Groovy Beans property. Although Java is based on the concept of JavaBeans as a structure, still it lacks a direct syntactic support. Whereas, groovy can declare a field as a property as trivial and can access it too.
|
C.
This feature was presented in groovy since its first release especially in the collection framework.
|
D.
All of these
|