贬低细节......

编程入门 行业动态 更新时间:2024-10-25 14:24:47
本文介绍了贬低细节......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

使用或覆盖已弃用的API。 -------这是编译java程序时显示的消息,应该怎么做才能避免这种情况???

Uses or overrides a deprecated API. ------- This is the message shown while compiling java program and what should be done to avoid this ???

推荐答案

使用或覆盖已弃用的API。 -------这是编译java程序时显示的消息,应该怎么做才能避免这种情况? Uses or overrides a deprecated API. ------- This is the message shown while compiling java program and what should be done to avoid this ???

这意味着您正在使用的某个类或方法已替换为另一个(希望更好)替代方案。原件仍然可以正常工作。要获取完整的详细信息,请使用-Xlint选项编译程序,该选项启用警告消息。如果你转到有关类的java文档,它将告诉你什么已经取代它。

it means that one of the classes or methods you are useing has been replaced with a another (one hopes better) alternative. The original should still work OK. To get full details compile the program with the -Xlint option which enables warning messages. If you go to the java documentation on the class in question it will tell you what has replaced it.

使用或覆盖已弃用的API。 -------这是编译java程序时显示的消息,应该怎么做才能避免这种情况? Uses or overrides a deprecated API. ------- This is the message shown while compiling java program and what should be done to avoid this ???

如果没有其他错误,代码将运行良好,但使用弃用代码是非常糟糕的做法。

The code will run fine if it has no other errors but it is very bad practice to use deprecated code.

readLine java.io.DataInputStream中的()已被删除。可以使用什么代替它来从键盘输入??? readLine() in java.io.DataInputStream has been depricated. What can be used instead of that to get input from keyboard ???

更多推荐

贬低细节......

本文发布于:2023-11-23 01:44:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1619661.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:细节

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!