Online Test

  • Facebook
  • Google
  • LinkedIn
  • Twitter
Question: 1
Which is correct scope, If a bean can be created any number of times.?
session
global session
request
prototype

Question: 2
What are different types of Bean Injections?
constructor and setter
constructor and getter
getter and setter
setter,getter and constructor

Question: 3
What AOP stands for?
Aspect Oriented Programming
Any Object Programming
Application Oriented Programming
Asset Oriented Protocol

Question: 4
Which is true for <set> collection configuration elements?
Used in wiring a list of values but without duplicates.
Used in wiring a list of values with duplicates.
It might be used to inject collection of name and value pairs of any type.
None of the above

Question: 5
IOC or DI is a 
Design Pattern
Framework
Java Module
ORM Framework

Question: 6
What is a DispatcherServlet?
This is used for AOP.
This is used for transaction management.
This handles all the HTTP requests and responses.
This is used for Dependency injection.

Question: 7
What is Advice?
This instruct object to behave in certain way.
Used to inject values in objects.
Used to take the real action either before or after the method execution.
Not invoked during the program execution by AOP framework.

Question: 8
Which is not the IoC containers in Spring?
BeanFactory
IocContextFactory
ApplicationContext
None of the above

Question: 9
Which exception class is related to all the exceptions that are thrown in spring applications? 
ArrayIndexOutofBound
DataAccessException
NullPointerException
SpringException

Question: 10
Which is not the IoC containers in Spring?
BeanFactory
ApplicationContext
BeanContext
None of the above

      Advertisements