Questions of Test: Spring Fundamentals

More >>

1

What is technically a 'bean' in Spring ?

2

I want to add the MessageSource functionality to application, providing access to messages in i18n-style in my application. Which one should I use ?

3

What do you understand by Dependency Injection ? Is it something unique to Spring ?

4

 What are important ApplicationContext implementations in spring framework ?

5

Spring requires all your class to have default constructors. Failure to do so will result an exception at startup.

6

An application server is required for Spring's Transaction mechanism to run. This statement is

7

Spring's Transaction management feature can fully replace all the features of EJB's Container managed transaction

8

Look at the code below .

<bean id = "helloWorldSample"´ depends-on = "setuphelloClassId">
     <property name="myString"> Hello World Program </property>
     <property name="dependentClassId"> <ref bean = "firstDependentClass"/>
 </property>
</bean>
 <bean id = "dependentClass" class = "com.helloworld.dependent.DependentClass" destroy-method="cleanupMethod">
   <property name="dependentString">
 </property>
</bean>

<bean id = "setuphelloClassId" class = "com.helloworld.config.setupHelloClass"/>

Which of the following answers is correct ?

9

Which of the following features are available when using the spring templating class such as JdbcTemplate or HibernateTemplate ?

10

Can you instantiate a static inner class in Spring ?

More >>