Spring interview questions part 20

Spring interview questions part 20

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. HSQLDB is a non-volatile database.

Correct Answer is : FALSE

2. Configure Grails to use another RDBMS by modifying:-

Correct Answer is : All of the mentioned

3. Grails relies on the standard Java JDBC notation to specify RDBMS.

Correct Answer is : TRUE

4. DataSource properties, Class name for the JDBC driver.

Correct Answer is : driverClassName

5. Indicates whether to enable SQL logging.

Correct Answer is : logSql

6. Which special type of advice is used to implement an interface?

Correct Answer is : Introduction

7. Introduction advice helps in implementing multiple inheritance

Correct Answer is : TRUE

8. In introduction advice you have to modify class to introduce new methods

Correct Answer is : FALSE

9. How does an Introduction advice do this in Spring?

Correct Answer is : dynamic proxy

10. Annotation used to declare an introduction

Correct Answer is : @DeclareParents

11. Target Classes can be denoted by Introduction Annotation

Correct Answer is : TRUE

12. Attribute used to specify implementation class

Correct Answer is : defaultImpl

13. How to keep track of the usage of your beans

Correct Answer is : All of the mentioned

14. How to introduce counter field to original bean class?

Correct Answer is : Using Spring AOP

15. Tag used to declare aspects

Correct Answer is : aop:config

16. To send an email using your Java Application:-

Correct Answer is : All of the mentioned

17. If you want to send an email to multiple recipients:-

Correct Answer is : void addRecipients(Message.RecipientType type, Address[] addresses)

18. void addRecipients(Message.RecipientType type, Address[] addresses) Parameter:- type: This would be set to:-

Correct Answer is : All of the mentioned

19. void addRecipients(Message.RecipientType type, Address[] addresses) Parameter:- addresses: This is the array of email ID, the method used while specifying email IDs

Correct Answer is : InternetAddress

20. To set content whose second argument is “text/html” to specify that the HTML content is included in the message.

Correct Answer is : setContent

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon