If we have beans declared as xml files, our applicationcontext choose to use classpathXmlApplicationContext. Similiarly,if our beans are declared as java file then applicationco