Exam4Training

Which of those statements is true?

Consider the following code sample which creates an ApplicationContext from a file called "application-config.xml" in the "rewards.internal" package, and a file called test-infra-config.xml in the current folder:

ApplicationContext context = new FileSystemXmlApplicationContext ("classpath:rewards.internal.application-config.xml", "file:test­infra-config.xml");

Which of those statements is true? (select one)
A . The use of the "file" prefix is not necessary
B . The use of the "classpath" prefix is not necessary
C . The use of the "." separator is correct
D . Both a and b

Answer: A

Exit mobile version