13.07.2015 Views

Spring Core Certification 3 Mock Exam - Java & Moi

Spring Core Certification 3 Mock Exam - Java & Moi

Spring Core Certification 3 Mock Exam - Java & Moi

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

}}1. JpaClientRepository2. jpaClientRepository3. clientRepository4. Two beans are defined : a data souce and a repositoryQuestion 4How could you externalize constants from a <strong>Spring</strong> configuration file or a <strong>Spring</strong> annotation into a.properties file? Select one or more answers1. By using the tag2. By declaring the ConstantPlaceholderConfigurer bean post processor3. By using the tag4. By using the c: namespaceQuestion 5What statement is not correct in live environment? Select a unique answer.1. Constuctor and properties autowiring in the same bean are not compatible2. A bean should have a default or a no-args constructor3. The tag could take type, name and index to reduce ambiguity4. None of the above5. All of the aboveQuestion 6What are the right affirmations about the @PostConstruct, @Resource and the @Requiredannotations?1. Those annotations are specified in the JSR-2502. The <strong>Spring</strong> Framework embedded those annotation3. The tag enable them4. The tag enable them5. Declaring the CommonAnnotationBeanPostProcessor enable themQuestion 7What is/are typically case(s) where you usually need to manually instanciated an ApplicationContext?1. In a web application2. In an integration test running with the <strong>Spring</strong>JUnit4ClassRunner3. In a standalone application started with a main method4. None of the above

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!