Java interface and implementation naming (or “I” or “Impl”)

How do I name my interfaces and the classes that implement my interfaces? Through much research on the internet and my own gut feelings, this is what I reckon:

I never prefix my interfaces with “I”. The value of coding to interfaces is that you can swap out the implementation with minimal hassle. It means that instead of using implementation specific class names in your code, you use interface names instead – right? So, if I’m going to be using interface names everywhere, I don’t want to have to prefix everything with “I”. Coding to interfaces is a best practice, so I don’t need to explicitly state that I am doing it…It should just happen – which makes the “I” prefix redundant.

Furthermore, the “Impl” suffix is also redundant. Yes, indeed, your dilemma isn’t as simple as picking between the two. Firstly, “Impl” doesn’t translate. “Impl” in other languages has no meaning, and yes I’m talking about Polish and Scala. In Polish (according to Google translate), “implementation” is “realizacja” and in Scala, there are no interfaces. The closest thing Scala has to interfaces is traits, which can contain implementation specific code. So really, everything is Scala is an implementation, so why you use “Impl” suffix?

Secondly “Impl” is restrictive. What happens when you want to add another implementation of Foo? You gonna call it “FooImplImpl”? “AnotherFooImpl”? “FooImpl2″? I didn’t think so. Perhaps you were going to just call it “FooImpl” and put it in a different package…

Thirdly “Impl” doesn’t convey any meaning about what the implementation is. You wouldn’t create an “AnimalImpl” would you? You’d create a “Lion” or an “Elephant”. There is almost always something that distinguishes your implementation that you can use in the class name. Even if it is a long name, it doesn’t matter – you’re coding to interfaces (remember?), so you’re rarely going to see that class name.

Lastly, and probably most importantly – you still can’t think of a name? You don’t need an interface. If you really can’t think of a name, your class must be generic enough to not need an interface and you’re probably not going to have any other implementations. Your class methods become the interface contract, and that is that.

3,228 thoughts on “Java interface and implementation naming (or “I” or “Impl”)

  1. Planning a flight through Lisbon Airport visit website? Here youll find information about LIS Humberto Delgado flights arrival and departure schedules for 2026 terminals and other important passenger information.

  2. Arriving in Miami for the first time? https://miami-mia-international-airport.com/ Find out what awaits passengers at MIA Airport after landing including baggage claim exiting the terminal transportation and transfers. This guide also includes flight schedules and tips for a comfortable departure.

  3. Kasyna z minimalnym depozytem premie za zaЕ‚oЕјenie kontaruletka na Ејywodarmowe gry jednorД™ki bandyta

  4. Наркошопы телеграм Где можно купить марихуану Наркошоп

  5. Свежая подборка материалов: разработка документов по охране труда для организаций

  6. Kasyno bonus bez depozytu 2026 gra w 21sloty co tojednoreki bandyta za darmo

  7. Трамадол купить в москве Купить наркотики москва Купить лирику без рецепта

  8. Metody płatności w kasynach online 15 free spins no depositjak wyczyścić pliki cookies chromedarmowe gry hazardowe 777 bez logowania

  9. Сайт купить марихуану Сайт купить марихуану Телеграм купить меф

  10. Metody płatności w kasynach online gry w których można wygrać pieniądzevulkan vegas kasynoverde casino no deposit bonus

  11. Где купить альфа пвп Купить гашиш бошки Где купить кокаин

  12. Kasyna z niskim depozytem kasyno online cdajak obrócić bonus stspzbuk kod bonusowy bez depozytu

  13. Thinking back to her decision to relocate to Portugal on her own five years ago Paula Dreyfuss jokes that many people questioned her state of mind as she’d never even visited the European country before. trip76 at But the mother of two now based in the coastal city of Porto famous for its Port wine and spectacular bridges has no regrets today as her life is much richer in many ways. “I have a lot more life here” Dreyfuss who is originally from Texas tells CNN Travel before blissfully describing her frequent trips to local museums movie theaters and pop-up wineries in the Douro Valley a UNESCO World Heritage region in northern Portugal. “My daughter came to visit one time and asked “Well what do you guys do all day?” she recalls. “And my friend holds up a glass of Champagne and goes “You’re looking at it.” m blsp at Better life Paula is able to live a comfortable life on an adequate income in Portugal which she feels wouldnt have been possible if shed stayed in California. Paula is able to live a comfortable life on an adequate income in Portugal which she feels wouldnt have been possible if shed stayed in California. Courtesy Paula Dreyfuss Dreyfuss loves the local food and usually eats out at least three times a week something she simply couldn’t have afforded to do when she was based in San Diego California where she lived and worked as a teacher previously. When she began teaching after working in corporate finance for years Dreyfuss thought she’d end up with a retirement income that would provide her with a comfortable lifestyle. trip76 co But as the years went by and the cost of living increased she realized that this was unlikely to be the case. Dreyfuss considered moving within the United States and recalls driving up to Seattle and “stopping at a bunch of places” but says she couldn’t find anywhere affordable enough to tempt her away. trip76.co She’d always dreamed of traveling around Europe extensively but Dreyfuss knew that this would likely never happen if she stayed where she was. So what better way to explore the continent than actually moving there? After doing some research into European countries Dreyfuss found that the only visa that she qualified for at the time was the Portugal D7 visa which allows non-EU nationals with a stable passive income to reside in the country. trip76.co Related article image29.jpg Jason Salesberry ‘We wanted to try something new’: This US family moved to Italy sight unseen nine years ago and never looked back 7 min read “I’d never been to Portugal. So I had no way of doing a scouting trip or anything” she says. “I thought ‘I’m going to go over there. And If I don’t like Portugal then I’ll move to Spain or France.’” While she put her plans on the back burner for a while Dreyfuss says that the Covid-19 pandemic in 2021 ultimately prompted her to finally leave the US permanently. “I was really ready to get away from the political situation in the United States” she admits. trip76.co https://bs-hn.org

  14. Thinking back to her decision to relocate to Portugal on her own five years ago Paula Dreyfuss jokes that many people questioned her state of mind as she’d never even visited the European country before. trip76 at But the mother of two now based in the coastal city of Porto famous for its Port wine and spectacular bridges has no regrets today as her life is much richer in many ways. “I have a lot more life here” Dreyfuss who is originally from Texas tells CNN Travel before blissfully describing her frequent trips to local museums movie theaters and pop-up wineries in the Douro Valley a UNESCO World Heritage region in northern Portugal. “My daughter came to visit one time and asked “Well what do you guys do all day?” she recalls. “And my friend holds up a glass of Champagne and goes “You’re looking at it.” blsp.at Better life Paula is able to live a comfortable life on an adequate income in Portugal which she feels wouldnt have been possible if shed stayed in California. Paula is able to live a comfortable life on an adequate income in Portugal which she feels wouldnt have been possible if shed stayed in California. Courtesy Paula Dreyfuss Dreyfuss loves the local food and usually eats out at least three times a week something she simply couldn’t have afforded to do when she was based in San Diego California where she lived and worked as a teacher previously. When she began teaching after working in corporate finance for years Dreyfuss thought she’d end up with a retirement income that would provide her with a comfortable lifestyle. trip76.at But as the years went by and the cost of living increased she realized that this was unlikely to be the case. Dreyfuss considered moving within the United States and recalls driving up to Seattle and “stopping at a bunch of places” but says she couldn’t find anywhere affordable enough to tempt her away. trip76 co She’d always dreamed of traveling around Europe extensively but Dreyfuss knew that this would likely never happen if she stayed where she was. So what better way to explore the continent than actually moving there? After doing some research into European countries Dreyfuss found that the only visa that she qualified for at the time was the Portugal D7 visa which allows non-EU nationals with a stable passive income to reside in the country. trip76.at Related article image29.jpg Jason Salesberry ‘We wanted to try something new’: This US family moved to Italy sight unseen nine years ago and never looked back 7 min read “I’d never been to Portugal. So I had no way of doing a scouting trip or anything” she says. “I thought ‘I’m going to go over there. And If I don’t like Portugal then I’ll move to Spain or France.’” While she put her plans on the back burner for a while Dreyfuss says that the Covid-19 pandemic in 2021 ultimately prompted her to finally leave the US permanently. “I was really ready to get away from the political situation in the United States” she admits. bs2best at https://bs2-clear.net

  15. Где купить альфа пвп Закладка соли Сайт купить марихуану

  16. просто создать фотосессию с помощью ии можно без сложного оборудования. используйте хорошее исходное фото и подходящую концепцию.

  17. Thinking back to her decision to relocate to Portugal on her own five years ago Paula Dreyfuss jokes that many people questioned her state of mind as she’d never even visited the European country before. bs2web.at But the mother of two now based in the coastal city of Porto famous for its Port wine and spectacular bridges has no regrets today as her life is much richer in many ways. “I have a lot more life here” Dreyfuss who is originally from Texas tells CNN Travel before blissfully describing her frequent trips to local museums movie theaters and pop-up wineries in the Douro Valley a UNESCO World Heritage region in northern Portugal. “My daughter came to visit one time and asked “Well what do you guys do all day?” she recalls. “And my friend holds up a glass of Champagne and goes “You’re looking at it.” blsp at Better life Paula is able to live a comfortable life on an adequate income in Portugal which she feels wouldnt have been possible if shed stayed in California. Paula is able to live a comfortable life on an adequate income in Portugal which she feels wouldnt have been possible if shed stayed in California. Courtesy Paula Dreyfuss Dreyfuss loves the local food and usually eats out at least three times a week something she simply couldn’t have afforded to do when she was based in San Diego California where she lived and worked as a teacher previously. When she began teaching after working in corporate finance for years Dreyfuss thought she’d end up with a retirement income that would provide her with a comfortable lifestyle. bs2web at But as the years went by and the cost of living increased she realized that this was unlikely to be the case. Dreyfuss considered moving within the United States and recalls driving up to Seattle and “stopping at a bunch of places” but says she couldn’t find anywhere affordable enough to tempt her away. blsp.at She’d always dreamed of traveling around Europe extensively but Dreyfuss knew that this would likely never happen if she stayed where she was. So what better way to explore the continent than actually moving there? After doing some research into European countries Dreyfuss found that the only visa that she qualified for at the time was the Portugal D7 visa which allows non-EU nationals with a stable passive income to reside in the country. bs2best at Related article image29.jpg Jason Salesberry ‘We wanted to try something new’: This US family moved to Italy sight unseen nine years ago and never looked back 7 min read “I’d never been to Portugal. So I had no way of doing a scouting trip or anything” she says. “I thought ‘I’m going to go over there. And If I don’t like Portugal then I’ll move to Spain or France.’” While she put her plans on the back burner for a while Dreyfuss says that the Covid-19 pandemic in 2021 ultimately prompted her to finally leave the US permanently. “I was really ready to get away from the political situation in the United States” she admits. m.blsp.at https://bs2webat.org

  18. Если вас обманули https://checkercom.com поможет понять как вернуть переведённые мошенникам деньги: куда обращаться что написать банку когда возможен чарджбэк и какие доказательства сохранить.

  19. Нужна заточка ножей? круглый нож для бумаги профессиональный станок для заточки круглых и дисковых ножей обеспечивает качественную обработку режущего инструмента. Оборудование подходит для регулярной заточки позволяет точно выдерживать параметры кромки и поддерживать ножи в рабочем состоянии.

  20. Телеграм купить меф Наркошопы телеграм Купить лирику в москве

  21. Решения для мониторинга транспорта https://gps-t.ru. Закажите у нас мониторинг ГЛОНАСС GPS и вы сможете отследить местоположение транспортного средства его маршрут пробег и многое другое как для легковых так и грузовых автомобилей.

  22. The best AI tools of 2026 https://botshere.com. We tested over 20 AI tools across categories including chatbots coding image and video generation research voice and automation. This page names a winner in each category—plus a runner-up worth considering and the best budget-friendly alternative.

  23. Looking to learn about the Forex market? https://forexlanes.com can help. You will gain a structured path into the currency market. The guide explains how the Forex market actually works what key concepts mean in practice and how to build the necessary knowledge base before risking real capital.

  24. Azure Forex Engine https://azureforexengine.com is a proprietary algorithmic trading system developed by professional traders and quantitative analysts. It is designed for those who understand that execution quality—not prediction—distinguishes consistent performance from market noise.

  25. Kasyna z niskim depozytem casino online no deposit bonus

  26. Explore the currency market at https://cwsforex.com — visit the site to learn how currencies are valued and traded and to understand the market participants and the mechanics behind every quote. Read the latest analysis to stay profitable.

  27. Сервис предлагает быстрый https://tarifexchange.pl и безопасный обмен криптовалюты в Варшаве за наличные. Доступна покупка и продажа популярной цифровой валюты USDT BTC ETH за USD EUR и PLN. Сделки проводятся по выгодному курсу в физическом офисе компании что гарантирует абсолютную конфиденциальность надежность и безопасность операций.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>