In Eclipse to view the source code of Java libraries , you can through the Ctrl + left mouse button to complete the way ; in the download and installation of the JDK , there will be a src.zip file , this file is the source code of Java libraries . But sometimes, there will be a source code not found problem, this time you can set up to solve it.
Take JDK1.8 as an example, look at the src.zip file
If you find that you can not find the source code, then set Click Attach Source button, the pop-up view, the JDK under the src.zip file into the click on the OK can beThis time, hold down the Ctrl+left mouse button pointing to the Java class library, you can view the class source code
Object class as an example of demonstration
On the API that is the so-called help file, you can download or view the official website of the Oracle Corporation
4.1 API version 1.6 Download URL /technetwork/java/javase/ downloads/jdk-6u/javase/javase/javase/javase/javase/javase/javase/javase/javase/javase/javase/javase.com downloads/jdk-6u25-doc-download-355137.html 4.2 API version 1.7 Download URL /technetwork/java/javase/documentation/java-se-7-doc-download- 435117.htmlNote: After downloading the zip file, the help documentation is in English after unzipping!