作者:只属于我一个人的秘密 | 来源:互联网 | 2023-05-19 16:03
IcheckedthesourcecodeofObjectclasswhereIfoundthatmethoddeclarationofgetClass()was我检
I checked the source code of Object
class where I found that method declaration of getClass()
was
我检查了对象类的源代码,发现getClass()的方法声明是
public final native Class> getClass();
And the declaration of hashCode()
was
hashCode()的声明是
public native int hashCode();
Why are these two methods native
methods in the class and how can I get the source code of those methods?
为什么这两个方法在类中是本机方法?我如何获得这些方法的源代码?
3 个解决方案