These methods make it a little bit more tricky to see exactly what is going on. For chapter 1, I recommend in FixedDepositDao these be removed:
public static FixedDepositController xyz(String xyz) {
System.out.println(xyz);
return new FixedDepositController();
}
public void setUrl(String url) {
this.url = url;
}
public void setDriverClass(String driverClass) {
this.driverClass = driverClass;
}
public void setUsername(String username) {
this.username = username;
}
public void setPassword(String password) {
this.password = password;
}
At this stage I have no idea why the Dao would want a static method to create a new FixedDepositController, or why it is called xyz.