简体   繁体   English

java.lang.Object的源代码

[英]Source code for java.lang.Object

Is there any web site that I could see the source code for the Java standard library? 有没有可以看到Java标准库源代码的网站? Most so the two classes java.lang.* and java.net.* ?? 最重要的是两个类java.lang。*和java.net。*

Please install Java JDK (Java Developer Kit), which is not the same as Java JRE (Java Runtime Environment). 请安装Java JDK(Java开发工具包),它与Java JRE(Java运行时环境)不同。

The Java JDK contains the Java source code. Java JDK包含Java源代码。

And you'd better to use an IDE (Integrated Development Environment) such as Eclipse or NetBeans to develop Java programs. 而且,您最好使用IDE(集成开发环境)(例如Eclipse或NetBeans)来开发Java程序。

You can look for the java code via the IDE tool. 您可以通过IDE工具查找Java代码。

Of course. 当然。 You could find it in the JDK, but also online. 您可以在JDK中找到它,也可以在线找到它。 I also use the online version, because I find it faster as to open the folder with the JDK, brows through all the files and so on. 我也使用在线版本,因为我发现使用JDK打开文件夹,浏览所有文件等操作的速度更快。 Just google "java source object". 只是谷歌“ java源对象”。

http://www.docjar.com/html/api/java/lang/Object.java.html http://www.docjar.com/html/api/java/lang/Object.java.html

You need the JDK (JAVA SDK) installed and source of class library is at (on Windows): 您需要安装JDK(JAVA SDK),并且类库的源位于(在Windows上):

C:\<Program Files>\Java\<JDK>\src.zip

Like 喜欢

C:\Program Files\Java\jdk1.7.0\src.zip

Java source code is available in JDK distribution. Java源代码在JDK发行版中可用。 If you have installed JDK on your machine, in JDK directory you'll find src.zip . 如果您在计算机上安装了JDK,则在JDK目录中将找到src.zip For example, in my windows machine source code is available at: C:\\Program Files\\Java\\jdk1.6.0_12 . 例如,在我的Windows计算机中,源代码位于: C:\\ Program Files \\ Java \\ jdk1.6.0_12

Alternatively, you can find Java source code online at: Java Source Code 另外,您可以在线找到Java源代码: Java源代码

Thanks, Mrityunjoy 谢谢,Mrityunjoy

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM