JDK目录下的SRC.ZIP文件
JDK目录下的SRC.ZIP文件,也就是常说的JAVA原源码的压缩包。我打开看里面的某个类的方法时,怎么都是空实现,就是一些注释啊?求解!
拿下来点看看:
拿下来点看看:
public final class StrictMath {
/**
* Don't let anyone instantiate this class.
*/
private StrictMath() {}
/**
* The <code>double</code> value that is closer than any other to
* <i>e</i>, the base of the natural logarithms.
*/
public static final double E = 2.7182818284590452354;
/**
* The <code>double</code> value that is closer than any other to
* <i>pi</i>, the ratio of the circumference of a circle to its
* diameter.
*/
public static final double PI = 3.14159265358979323846;
/**
* Returns the trigonometric sine of an angle. Special cases:
* <ul><li>If the argument is NaN or an infinity, then the
* result is NaN.
* <li>If the argument is zero, then the result is a zero with the
* same sign as the argument.</ul>
*
* @param a an angle, in radians.
* @return the sine of the argument.
*/
public static native double sin(double a);
/**
* Returns the trigonometric cosine of an angle. Special cases:
* <ul><li>If the argument is NaN or an infinity, then the
* result is NaN.</ul>
*
* @param a an angle, in radians.
* @return the cosine of the argument.
*/
public static native double cos(double a);
...全文
相关推荐
jdk1.8.0源码 src.zip
在windows下和Netbeans一起安装的JDK 后来发现没有源码 在网上找了半天的原因才发现 是由于授权问题 在某些地区 包括大中华 下载的版本中没有提供该文件 于是从别的版本中提取了一份
jdk的src文件
jdk的src.zip压缩文件,只要将其与rt相关联就可以在eclipse中找到相关类的源代码
jdk源代码src.zip
jdk8源代码src.zip文件,下载下来用eclipse关联即可查看源代码,给那些开始未安装源代码之后又想查看源代码的人提供下载途径,
bcprov-jdk14-128-src.zip
bcprov-jdk14-128-src.zip
src.zip(添加了其他rt.jar缺少的源码)
添加了很多默认src.zip中不存在的源码。方便阅读代码。


Java SE
