When should I create a Java INTERFACE?

Опубликовано: 04 Июнь 2026
на канале: Pro Coder
2,235
66

People are always talking about using a Java interface. So WHEN should I do that? Not for every class, right? What's a good way to spot WHEN I should be using a Java interface?

====
Don't forget to pre-order your copy of Learning Spring Boot 3.0 3rd Edition today at https://springbootlearning.com/book!
====

ALSO SEE: 👀
✅ What is MVC?    • HOW does it help me build better SPRING BO...  

RESOURCES: 👇
Order your copy of Learning Spring Boot 3.0 3rd Edition today at https://springbootlearning.com/book!

GET MORE: 🎉
Get a FREE tech ebook at https://springbootlearning.com/join
Follow me on Twitter:   / springbootlearn  

GRAB A MUG FOR YOUR COFFEE ☕ (and a t-shirt): https://store.springbootlearning.com/

Click "subscribe" under the video (and hit that bell icon) to get notified when new videos come out.

STUFF I LIKE TO USE: 😍
Motorized standing desk: https://springbootlearning.com/desk
Laptop stand: https://springbootlearning.com/twelve...
AirPods Pro: https://springbootlearning.com/airpod...
Affordable thumbnail testing: https://springbootlearning.com/thumbn...
Music: https://springbootlearning.com/epidem...
Recut (pre-editing): https://springbootlearning.com/recut
Other studio gear: https://springbootlearning.com/kit

DISCLOSURE: All opinions stated here are mine and do not necessarily reflect those of the Spring team nor of my employer. Any usage of "Spring", "Spring Boot", "Spring Framework", "VMware", "Pivotal", or anything else is completely unaffiliated with its owners. From time to time, I may post affiliate links for products I enjoy using. They don't cost you anything extra, and I may get a small commission.

#springbootlearning

© 2023 Greg L. Turnquist, All Rights Reserved