Explore topic-wise InterviewSolutions in Current Affairs.

This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.

1.

What Is A Grails Plugin?

Answer»

It's a bundle/set of functionality to a DESIRED PROPOSE that can be installed in your GRAILS APPLICATION.

It's a bundle/set of functionality to a desired propose that can be installed in your grails application.

2.

What Is Another Way To Make A Transaction Method That Not Use The Transactional Annotation In Grails?

Answer»

USING the ".withTransaction" method

Example:

Account.with TRANSACTION { status ->

def source = Account.get(params.from)

def dest = Account.get(params.to)

int amount = params.amount.to INTEGER()

if (source.active) {

source.balance -= amount

if (dest.active) {

dest.amount += amount

}

else {

status.setRollbackOnly()

}

}

}

Using the ".withTransaction" method

Example:

Account.with Transaction { status ->

def source = Account.get(params.from)

def dest = Account.get(params.to)

int amount = params.amount.to Integer()

if (source.active) {

source.balance -= amount

if (dest.active) {

dest.amount += amount

}

else {

status.setRollbackOnly()

}

}

}

3.

What Is Pessimistic Locking?

Answer»

Locking a ROW until the current TRANSACTION is COMPLETED. This has the implication that other read operations will be blocking until the lock is released.

Locking a row until the current transaction is completed. This has the implication that other read operations will be blocking until the lock is released.

4.

Could You Give Me An Example Of Meta Programming In Grails?

Answer»

The DYNAMIC FINDERS in the DOMAINS CLASS.

The dynamic finders in the domains class.

5.

What Is Metaprogramming?

Answer»

It's the groovy ABILITY to ADD new METHODS or variables to classes DYNAMICALLY at run time, and WITHOUT touching the code.

It's the groovy ability to add new methods or variables to classes dynamically at run time, and without touching the code.

6.

Where Do You Setup Your Dependency Manager, Your Repositories, Dependencies And Plugins?

Answer»

BuildConfig.groovy

BuildConfig.groovy

7.

What Is The Command To Run You Application In A Different Port Than 8080?

Answer»

GRAILS -Dserver.port=9090 run-app

grails -Dserver.port=9090 run-app

8.

What's Is Groovy?

Answer»

is an dynamic, OBJECT oriented, SCRIPTING language that it's COMPILED in byte code and runs over the JVM. this language INCLUDE some features like METHA programing, closures, etc.

is an dynamic, object oriented, scripting language that it's compiled in byte code and runs over the JVM. this language include some features like metha programing, closures, etc.

Previous Next