Java 中有用的环境设置列表
我很长时间以来一直想知道是否有一个完整的(可能是静态的)方法/字段列表来存储 JVM 的运行时信息。不完整的示例列表:
- System.out / System.in
- System.currentTimeMillis()
- System.getProperty()
- System.getConsole()
- Runtime.freeMemory()
- 等
有人有链接吗?
编辑: 我还没有愚蠢到没有检查系统和运行时的文档:P 我只是想知道是否还有其他类存储了类似的方法来确定您正在运行的机器的状态。
I've been wondering a long time if there was a comprehensive list of (probably static) methods/fields that store runtime information for the JVM. An incomplete list of examples:
- System.out / System.in
- System.currentTimeMillis()
- System.getProperty()
- System.getConsole()
- Runtime.freeMemory()
- Etc
Does anyone have a link or something?
EDIT:
I'm not so dumb as to have not checked the docs for System and Runtime :P
I was just wondering if there were other classes where similar methods to determine the state of the machine you're running on are stored.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
常规属性
我使用此代码来处理一些我特别感兴趣的 Java 类已知的事物。
媒体
与合成和采样的声音以及图像相关的
属性。
其他
您可能还会研究:
InetAddress
KeyStore
CookieManager
KeyManagerFactory
日志管理器
General Properties
I use this code to get a handle on some of the things known to Java classes that are of particular interest to me.
Media
Properties related to synthesized and sampled sound, and images.
Other
You might also investigate:
InetAddress
KeyStore
CookieManager
KeyManagerFactory
LogManager
这个类打印很多东西到标准输出
This class prints quite a few stuff to stdout