thank you for your quick response.
now i am a little bit clear.but,who will implement these native methods?
i have just installed the j2se1.5.0_15 and now if i call something like this
System.out.println(objectname_of_myclass);
it should automatically call toString() of Object class as i haven't implemented toString() in my class.
but in source, the toString() method of Object class contains something like this
"
public
String toString() {
return getClass().getName() + "@" + Integer.toHexString(hashCode());
}
"
here toString itself is calling hashCode(); of Object class which is a native method. then,who has implemented this hashCode() method and where it is implemented ? is that JVM?