i just started to learn Spring2. according to the spring2, it looks like the most advantage of spring is 'Dependency Injection'.
i am reading Spring in action. but i stuck from the first chapter.
BeanFactory factory = new XmlBeanFactory(new FileSystemResource("classes/com/test/chap1/knight/knight.xml"));
// TODO Auto-generated method stub
Knight knight =
// What's the difference between this and above.
Knight knight = new KnightOfTheRoundTable("Bedivere");
the commented line is what is in book. the last line is what i thought and work as same as book.
what's the difference between book and the last line?