Chapter 12. Native Methods
In this chapter
• 12.1 Calling a C Function from a Java Program
• 12.2 Numeric Parameters and Return Values
• 12.7 Accessing Array Elements
While a “100% Pure Java” solution is nice in principle, there are situations in which you will want to write (or use) code written in another language. (Such code is usually called native code.)
Particularly in the early days of Java, many people assumed that it would be a good idea to use C or C++ to speed up critical parts of a Java application. However, in practice, ...
Get Core Java, Volume II—Advanced Features, Tenth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.