How many Java SE api are written in Java?

How many Java Java api are actually written in Java itself?

+5
source share
4 answers

The easiest way to find out is to simply look at the source code (from the Sun J2SE website, as well as the OpenJDK source for 6 and 7 ). This is, to a large extent, as one would expect - things that must necessarily be written in native code, for example. "open socket or file" are native, but pretty much everything else is written in Java (when implementing Sun, anyway).

+5
source

Download OpenJDK and find out!

- Java, , ( ).

+4

Apache Harmony !

85% Sun JRE Java. . IBM Jikes RVM ( Jalapeño) Sun Maxine - JVM, Java. Sun JRE . - , . , ( ) .

+2

, .

API %, , native .

You can perform this calculation by analyzing the open source SUN implementation source code.

0
source

All Articles