flora kalisa wrote:
- coding to an interface is a good practice, is this statement correct ? why ?
Because it decouples the calling code from implementation details that don't matter, making it more robust. The implementation details behind the interface can be modified without the calling code needing to be aware of it, or to have to change.
- coding to an interface is good especially with spring, why ?