哪儿能看到java开源代码?

来源:百度知道 编辑:UC知道 时间:2024/09/28 15:36:30
都说java是开源的,哪儿能看到java的开源代码?

哪儿能看到API中提供的方法是如何具体实现的?

MyEclipse中看到的好像只有一些,再具体的,有的就看不到了。

比如:
public void write(byte b[], int off, int len) throws IOException {
writeBytes(b, off, len);
}

/**
* Closes this file output stream and releases any system resources
* associated with this stream. This file output stream may no longer
* be used for writing bytes.
*
* <p> If this stream has an associated channel then the channel is closed
* as well.
*
* @exception IOException if an I/O error occurs.
*
* @revised 1.4
* @spec JSR-51
*/

就差不到write的具体实现方法了

高手指点 谢谢~~

选中某一个函数,点击f3,然后关联jdk安装包下面的名字叫src的文件

这个可以到sun公司网站上下载的
src.zip文件
解压后就是源代码

你得问作者。他有源码,就看他愿不愿意给你了。

可以用反编译软件查看class及jar包中的文件