what are the advantages/disadvantages of init method over a constructor in java? They both have same purpose. How to choose between them? :     public class A{
    
    private int x;
    
    public A(int x){
     this.x = x;
    }
    public void init(int x){
      this.x = x;
    }
}
Here we can use either constructor or init method.
