Java Best Practices | Code for Interface Not for Implementation | PART-1

Published: 30 March 2020
on channel: Java Guides
12,295
210

Welcome to Java best practices series. In Part 1, we will learn how to code for interface, not for implementation with an example.

Java best practices playlist at    • Java Best Practices  .

Always program for the interface and not for application; this will lead to flexible code that can work with any new implementation of the interface.

So use interface type on variables, return types of method or argument type of methods in Java.

Read a blog post on my website at https://www.javaguides.net/2020/03/co...


#javabestpractices #javaguides #oops #java


On this page of the site you can watch the video online Java Best Practices | Code for Interface Not for Implementation | PART-1 with a duration of hours minute second in good quality, which was uploaded by the user Java Guides 30 March 2020, share the link with friends and acquaintances, this video has already been watched 12,295 times on youtube and it was liked by 210 viewers. Enjoy your viewing!