Why should the interface for a Java class be preferred?

后端 未结 10 1541
陌清茗
陌清茗 2020-11-22 05:43

PMD would report a violation for:

ArrayList list = new ArrayList();


The violation was \"Avoid using implementat

10条回答
提交回复
热议问题