Spring Boot/Spring MCQs Sample Test,Sample questions

Question:
 Declaring bean form object properties can be done using:-

1. PropertyPathFactoryBean

2.util:constant

3.None of the mentioned

4.All of the mentioned


Question:
 Which attribute is used to specify classname of the bean?

1.name

2.id

3.class

4.constructor-args


Question:
Method used to process bean before initialization callback

1.scope

2. postProcessAfterInitialization()

3.postProcessBeforeInitialization()

4.it's own constructor


Question:
Method used to process bean before initialization callback

1.scope

2.postProcessAfterInitialization

3.postProcessBeforeInitialization()

4. it's own constructor


Question:
What are the ways to create custom Property Editors?

1. implement PropertyEditor interface

2.extend PropertyEditorSupport Class

3.none of the mentioned

4.all of the mentioned


Question:
Which attribute is used to set the scope of the bean?

1.setScope

2.scope

3.getScope

4.none of the mentioned


Question:
Which attribute is used to set the scope of the bean?

1.setScope

2.scope

3.getScope

4.None of the mentioned


Question:
Which method is used to gracefully shutdown all the bean processes after closing the spring container?

1.shutdownHook

2.destory method

3.none of the mentioned

4.all of the mentioned


Question:
Which package is used for periodic work

1.java.lang.Thread

2.java.util.TimerTask

3.java.util.Timer

4.java.util.concurrent


Question:
Which tag is also allowed by static field?

1.util:constant

2.list

3.set

4.constructor-args


More MCQS

  1. Spring Boot Common Test
  2. Spring Boot - Bootstrapping
  3. Spring Boot - Logging
  4. Spring Boot - Application Properties
  5. Spring Boot - RESTful Web Services
  6. Spring Boot - Exception Handling
  7. Spring Boot - Interceptor
  8. Spring Boot - File Handling
  9. Spring Boot - CORS
  10. Spring Boot - Internationalization
  11. Spring Boot - Scheduling
  12. Spring MCQs
  13. SPRING BOOT MCQ QUESTIONS
  14. Spring MVC MCQ QUESTIONS AND ANSWER
  15. Spring Cloud MCQ QUESTIONS AND ANSWER
  16. Spring WebFlux MCQ OUESTIONS AND ANSWER
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!