It is a bad practice to use Sun's proprietary Java classes?

前端 未结 7 1741
孤独总比滥情好
孤独总比滥情好 2020-11-22 08:59

The compiler display warnings if you use Sun\'s proprietary Java classes. I\'m of the opinion that it\'s generally a bad idea to use these classes. I read this somewhere. Ho

相关标签:
7条回答
  • 2020-11-22 09:38

    Yes, because nobody guarantees that these classes or API will be the same with the next Java release and I bet it's not guaranteed that those classes are available in Java versions from other vendors.

    So you couple your code to special Java version and loose at least portability.

    0 讨论(0)
提交回复
热议问题