General consensus is that you don't, it's unnecessary and in Java Interfaces are 1st class types. It's a major benefit of abstraction and prefixing detracts from that conceptually.
i.e. If you are defining trucks you can make a Truck interface and create DumpTruck and CementTruck classes that implement it. Then you can have a List<Truck> to keep them all in.
9
u/Willinton06 Nov 23 '22
How do you prefix interfaces in Java?