Question
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/util/spring-util-3.0.xsd"
util:constant id="aaa"
static-field="com.shop.Product.AAA" />
util:constant id="cdrw"
static-field="com.shop.Product.CDRW" />
</beans>
a.
Yes
b.
No
c.
May be
d.
Can't say
Posted under Java Spring Framework
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Is this bean configuration correct?
Similar Questions
Discover Related MCQs
Q. Declaring bean form object properties can be done using:-
View solution
Q. Inner Bean can be retrieved by it’s name.
View solution
Q. PropertyPathFactoryBean declares a bean from an:-
View solution
Q. The propertyPath property of PropertyPathFactoryBean can accept only a single property name.
View solution
Q. Alternate way of PropertyPathFactoryBean to declare a bean.
View solution
Q. We can combine target Object and propertyPath properties as bean name/id of PropertyPathFactoryBean.
View solution
Q. The Spring Expression Language can be accessed by:-
View solution
Q. A bean can be requested by:-
View solution
Q. Which attribute is used to set the scope of the bean?
View solution
Q. Which one is the default scope of the beans?
View solution
Q. Which scope creates a new bean instance each time when requested?
View solution
Q. Session Creates a single bean instance per HTTP request, only valid in the context of a web application?
View solution
Q. Which of the following are considered valid beans?
View solution
Q. Which interface is used to perform initialization of beans?
View solution
Q. Which interface is used to perform destruction of beans?
View solution
Q. Alternate way of initialization method is:-
View solution
Q. Alternate way of destruction method is:-
View solution
Q. Which annotation is used as a substitute of initialization method?
View solution
Q. Which annotation is used as a substitute of destroy method?
View solution
Q. Which configuration can be used for Dependency Injection?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Java Spring Framework? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!