Some methods contain a Compiled Code?

前端 未结 2 1883
被撕碎了的回忆
被撕碎了的回忆 2021-01-07 01:46

From going to the source of some classes I saw some methods contain a compiled code, they are looks like this before expanding:

public void someMethod(){

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-07 02:07

    Compiled code just means that the IDE doesn't have the source available to it (but the code is written in Java). The sun.* classes typically don't make their source available because they have a non-public API. This shouldn't be confused with native code, which can be written in C/C++ and called through JNI/JNA.

提交回复
热议问题