Q.1
Which of the following class can be used to execute Sql queries in spring?
  • DBHelper
  • DBTemplate
  • JDBCHelper
  • JdbcTemplate
Q.2
What is dependency injection?
  • It is a technique to get dependencies from any project.
  • It is one of the Spring modules.
  • It is used to promote loose coupling in code.
  • It is a design pattern that implements the Inversion of control (IoC) pattern for software applications.
Q.3
Spring Dependency Injection is useful because it makes your code:
  • simple
  • easier to test
  • easier to understand
  • All of the above
Q.4
The act of creating associations between different componenet of application is known as:
  • integrating
  • framing
  • wiring
  • collaborating
Q.5
Which exception class is bound to all the exceptions thrown in Spring applications?
  • ArrayIndexOutofBound
  • SpringException
  • NullPointerException
  • DataAccessException
Q.6
What types of dependency injection does Spring support?
  • Based on setters, getters, and properties
  • Based on the constructor and setters
  • Based on the constructor, setters, and getters
  • Based on the constructor, setters, and properties
Q.7
What is the scope of stateful bean?
  • prototype
  • session
  • global-session
  • request
Q.8
What is ContextStoppedEvent event?
  • This event is published when the HTTP Response is returned.
  • This event is published when the HTTP Request is received.
  • This event is published when the ApplicationContext is stopped using the stop() method on the ConfigurableApplicationContext interface.
  • This event is published when the Servlet Context is either initialized or refreshed.
Q.9
What is global-session scope?
  • This scopes the bean definition to HTTP request
  • This scopes the bean definition to Spring IoC container.
  • This scopes a bean definition to an HTTP Application/ Global session.
  • This scopes the bean definition to HTTP Session.
Q.10
Which are the modules of Data Access/ integration layer?
  • JDBC, ORM, OXM, JMS
  • JDBC, ORM, OXM, JMS
  • JDBC, ORM, Web, Beans
  • JDBC, ORM, OXM, JMS, Transactions
0 h : 0 m : 1 s