Most of the standard library is usually implemented in Java. Nevertheless, many of the functionality of the OS or platform must be implemented in the "native" code, so a good percentage is also usually written in C and / or C ++. Of course, this depends a little on the specific implementation of the JVM.
Typical functionality implemented in languages other than Java includes streams, network I / O, file I / O, and low-level APIs. Please note that these are all rather small, low-level specific functions - all the more abstract / general algorithms are ideal for implementation in Java, and therefore they are usually.
source
share