Difference between a deprecated and a legacy API?

后端 未结 7 2394
予麋鹿
予麋鹿 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:50

    I have a suggestion - legacy refers to code that was written in the past, deprecated refers to the advice not to use it anymore. You can still use deprecated api, but you can't write legacy code, cuz you're writing it right now. Just IMHO

提交回复
热议问题