gpt4 book ai didi

java - 在哪里可以找到 Java API 代码

转载 作者:行者123 更新时间:2023-11-30 05:59:49 25 4
gpt4 key购买 nike

我听说Java是开源代码。那么,我可以获得 Java API 编码方法吗?如果是这样,请告诉我在哪里可以获取 Java API 的源代码。

最佳答案

可以在JDK安装目录下的src.zip中找到。

来自Java docs :

Source Code:

(In src.zip) JavaTM programming language source files for all classes that make up the Java core API (that is, sources files for the java., javax. and some org.* packages, but not for com.sun.* packages). This source code is provided for informational purposes only, to help developers learn and use the JavaTM programming language. These files do not include platform-specific implementation code and cannot be used to rebuild the class libraries. To extract these file, use any common zip utility. Or, you may use the Jar utility in the JDK's bin/ directory:

jar xvf src.zip

关于java - 在哪里可以找到 Java API 代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2407206/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com