title: Spring Bean: Is autowired attribute initialised before constructor?
body: <pre><code>@Component
  public class BeanA {
  ...
  }
  
  
  @Component
  public class BeanB {
  
      @Autowired
      BeanA beanA;
  
      public BeanB() {
          // Use beanA
          beanA.method();
      }
  }
  </code></pre>
  
  <p>Can we assume BeanA is created and initialized before BeanB constructor is called? (I know we can pass BeanA as constructor arg to BeanB, this is more of curiosity question to understand spring/java initialisation sequence)</p>