Difference between a deprecated and a legacy API?

后端 未结 7 2357
予麋鹿
予麋鹿 2020-11-30 03:22

I was studying the legacy API\'s in the Java\'s Collection Framework and I learnt that classes such as Vector and HashTable have been

7条回答
  •  离开以前
    2020-11-30 03:55

    The Deprecated annotation gives a formal definition of a deprecated API. I don't think that a formal definition for legacy classes exists. Both actually mean that the class shouldn't be used in new code.

提交回复
热议问题