Monday 18 February 2019

java - What is the point of native methods?

I came across the concept of native methods when researching java.lang.arraycopy(). It seems that the source code is not available because each java virtual machine has different implementations of the method. What is the purpose of this?


Let me know if I've fundamentally misunderstood one of these concepts!

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...