在看core java,当中有一段话如下
The Cloneable interface is one of a handful of tagging interfaces that Java provides
A tagging interface has no methods; its only purpose is to allow the use of
instanceof in a type inquiry:
if (obj instanceof Cloneable) . . .We recommend that you do not use tagging interfaces in your own programs为什么书上说不推荐使用 tagging interfaces 呢
The Cloneable interface is one of a handful of tagging interfaces that Java provides
A tagging interface has no methods; its only purpose is to allow the use of
instanceof in a type inquiry:
if (obj instanceof Cloneable) . . .We recommend that you do not use tagging interfaces in your own programs为什么书上说不推荐使用 tagging interfaces 呢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货