PdfPrep.com

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

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

Exit mobile version