Spring

1. Beans can be created by which of the following properties?
a) Static factory-method
b) Instance Fatcory-Method
c) All of the mentioned
d) None of the mentioned
2. Which attribute is used to set the scope of the bean?
a) setScope
b) scope
c) getScope
d) none of the mentioned
3. Which method is used to gracefully shutdown all the bean processes after closing the spring container?
a) shutdownHook
b) destory method
c) none of the mentioned
d) all of the mentioned
4.Which property editor is used to specify a URL String for a propertyof the URL type?
a) java.net.*
b) java.io.*
c) java.net.URL
d) none of the mentioned
5. One factory class can also hold more than one factory method True/False?
a) True
b) False
6. Which method of bean post processors is used to check path existence
a) getPath
b) setPath
c) value
d) auto-wiring
7. Session Creates a single bean instance per HTTP request, only valid in the context of a web application?
a True
b) False
8.Which interface is used to create your own property editors?
a) CustomEditorConfigurer
b) RegisterCustomEditor
c) PropertyEditorConfigurer
d) None of the mentioned
9.Which tag informs the spring container about the use of AspectJ annotation?
a) aop:aspectj-autowire
b) aop:aspectj-name
c) aop:aspectj-autoproxy
d) none of the mentioned
10.Annotation used to refer poincuts?
a) @Pointcut
b) @PointcutExecution
c) @PointcutBefore
d) None of the mentioned
0
{"name":"Spring", "url":"https://www.quiz-maker.com/Q9H8ZXB","txt":"1. Beans can be created by which of the following properties?, 2. Which attribute is used to set the scope of the bean?, 3. Which method is used to gracefully shutdown all the bean processes after closing the spring container?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}