Spring interview questions part 21

Spring interview questions part 21

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

Total Questions: 20

1. If it is required to provide user ID and Password to the email server for authentication purpose then you can set properties:

Correct Answer is : all of the mentioned

2. It is assumed that your localhost is connected to the internet and capable enough to send an email.

Correct Answer is : TRUE

3. You can implement the interface to send email notifications in case of errors.

Correct Answer is : ErrorNotifier

4. You send the email by making a call to:-

Correct Answer is : Transport.send()

5. Class which declares a number of overloaded update() template methods to control the overall update process.

Correct Answer is : org.springframework.jdbc.core.JdbcTemplate

6. You implement this interface to override the statement creation task.

Correct Answer is : PreparedStatementCreator

7. When implementing the PreparedStatementCreator interface, you will get the database connection as the createPreparedStatement() method’s argument.

Correct Answer is : TRUE

8. It is better to implement the PreparedStatementCreator interface and other callback interfaces as inner classes if they are used within one method only.

Correct Answer is : TRUE

9. PreparedStatementSetter, as its name indicates, create a PreparedStatement object on this connection the parameter as well as binding task of the overall update process.

Correct Answer is : FALSE

10. The JdbcTemplate class offers template method for batch update operations.

Correct Answer is : all of the mentioned

11. The JdbcTemplate class declares a number of overloaded query() template methods to control the overall query process.

Correct Answer is : 0

12. The primary interface that allows you to process the current row of the result set.

Correct Answer is : RowCallbackHandler

13. RowCallbackHandler purpose is to map a single row of the result set to a customized object.

Correct Answer is : FALSE

14. Method of RowMapper interface in which, you have to construct the object that represents a row and return it as the method’s return value.

Correct Answer is : mapRow()

15. RowMapper implementation which can automatically map a row to a new instance of the specified class.

Correct Answer is : BeanPropertyRowMapper

16. Method which provides list of maps.

Correct Answer is : queryForList()

17. Spring JDBC framework offers a convenient class, to simplify your DAO implementation.

Correct Answer is : org.springframework.jdbc.core.support.JdbcDaoSupport

18. The org.springframework.jdbc.core.support.JdbcDaoSupport class has a setDataSource() method and a setJdbcTemplate() method.

Correct Answer is : TRUE

19. Method to retrieve the JDBC template.

Correct Answer is : getJdbcTemplate()

20. Template which can send and receive JMS messages with much less code

Correct Answer is : JmsTemplate

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon