I was checking Object class in java and found that hashCode, notify, wait and few other methods are native methods.
public final native void wait(long timeout) throws InterruptedException;
Are these methods not implemented using java language? Some other programming language (i guess C) is used to implement these methods?
Kindly help me in getting clear picture here.
Thanks, Gaurav
They have to use C as the hashCode()
works on the Objects header.
notify/wait uses system calls which are not available any other way.