JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Spring interview questions part 4
Spring interview questions part 4
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. We can directly use Spring AOP for injection of beans
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
2. Which scope does @Configurable instantiated class looks for?
A. Singleton
B. Prototype
C. None of the mentioned
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Prototype
3. Spring includes AnnotationBeanConfigurerAspect in its aspect library for configuring the dependencies of any objects
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
4. Method used to process bean before initialization callback
A. scope
B. postProcessAfterInitialization()
C. postProcessBeforeInitialization()
D. it’s own constructor
Show Correct Answer
Correct Answer is :
postProcessBeforeInitialization()
5. Method used to process bean after initialization callback
A. scope
B. getBean
C. postProcessAfterInitialization()
D. it’s own constructor
Show Correct Answer
Correct Answer is :
postProcessAfterInitialization()
6. Which method is used to gracefully shutdown all the bean processes after closing the spring container?
A. shutdownHook
B. destroy method
C. none of the mentioned
D. all of the mentioned
Show Correct Answer
Correct Answer is :
shutdownHook
7. Which method is used to register BeanPostProcessor?
A. addBeanPostProcessors
B. registerBeanPostProcessors
C. addBeanProcessors
D. none of the mentioned
Show Correct Answer
Correct Answer is :
addBeanPostProcessors
8. In application context, BeanPost Processors are registered using addBeanPostProcessors method
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
9. Which Interface for bean Post Processor is used to distinguish between checked beans
A. StorageConfig
B. Marker
C. None of the mentioned
D. All of the mentioned
Show Correct Answer
Correct Answer is :
StorageConfig
10. Which method of bean post processors is used to check path existence
A. getPath
B. setPath
C. value
D. auto-wiring
Show Correct Answer
Correct Answer is :
getPath
11. It’s possible to replace the original bean instance with a brand-new instance in your bean post processor
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
12. PathCheckingBeanPostProcessor will not work properly in case of:-
A. XML Configuration
B. Java based Configuration
C. JSR Annotation
D. None of the mentioned
Show Correct Answer
Correct Answer is :
JSR Annotation
13. Which bean factory post processor externalizes part of the bean configurations into a properties file
A. PropertyPlaceholderConfigurer
B. PropertyPlaceholderRegister
C. PropertyGetPath
D. None of the mentioned
Show Correct Answer
Correct Answer is :
PropertyPlaceholderConfigurer
14. Which interface defines methods for resolving text messages
A. MessageSource
B. ApplicationListener
C. ApplicationContextListener
D. TextEvent
Show Correct Answer
Correct Answer is :
MessageSource
15. Which interface is used to listen to certain events
A. ApplicationListener
B. ContextListener
C. EventListener
D. None of the mentioned
Show Correct Answer
Correct Answer is :
ApplicationListener
16. Which method is used to publish your own custom event
A. contextPublish
B. publishEvent
C. applicationEventPublish
D. addEvent
Show Correct Answer
Correct Answer is :
publishEvent
17. Which of the following is a well known recognized event
A. ContextCloasedEvemt
B. ContextRefreshedEvent
C. RequestHandledEvent
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
18. Which event is provoked when web request comes into action
A. ContextClosedEvent
B. ContextStoppedEvent
C. SessionEvent
D. RequestHandledEvent
Show Correct Answer
Correct Answer is :
RequestHandledEvent
19. A bean can be requested by:-
A. getBean method
B. reference from another bean using autowiring, property etc
C. all of the mentioned
D. none of the mentioned
Show Correct Answer
Correct Answer is :
all of the mentioned
20. Which attribute is used to set the scope of the bean?
A. setScope
B. scope
C. getScope
D. none of the mentioned
Show Correct Answer
Correct Answer is :
scope
Similar Interview Questions
Search for latest jobs
Find Jobs