Which of the following scenarios requires you to instantiate an ApplicationContext using the ‘new’ keyword? (Select one)

Posted by: Pdfprep Category: CoreSpringV3.2 Tags: , ,

Which of the following scenarios requires you to instantiate an ApplicationContext using the ‘new’ keyword? (Select one)
A . Running your Spring application inside a JUnit test (using SpringJUnit4ClassRunner)
B . Bootstrapping your Spring application within a Java main() method
C . Deploying your Spring application in an application server, packaged in a WAR file
D . Both a and b

Answer: B

Leave a Reply

Your email address will not be published.