1.
Guess the output
class Fruits{
String fruitName
String fruitColor
def setName(String name){
fruitName = name
}
def getFruitName(){
println "Name of the fruit is $fruitName"
}
static void main(args){
println "I am inside main"
Fruits apple = new Fruits()
apple.setName("Apple")
apple.getFruitName()
}
}