This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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 ?