title: final class without implementing interfaces can be creating by Spring
body: <p>This is a final class without implementing interfaces:</p>
  
  <pre><code>@Component("finalClass")
  public final class FinalClass {
      public String hello(){
          return "hello";
      }
  }
  </code></pre>
  
  <p>This is the test class:</p>
  
  <pre><code> public class Test {
      public static void main(String[] args) {
          ApplicationContext ac = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
          FinalClass finalClass = (FinalClass) ac.getBean("finalClass");
          System.out.println(finalClass.hello());
      }
  }
  </code></pre>
  
  <p>It can run. 
  The final class can not be extending, and it doesn't implement any interfaces. Why can Spring create it?   </p>