Problems
Use the following problems to test your programming prowess in manipulating off-heap memory and calling native foreign functions from Java. I strongly encourage you to give each problem a try before you turn to the solutions and download the example programs:
- Introducing Java Native Interface (JNI): Write a Java application that calls a C/C++ native foreign function via the JNI API (for instance, implement in C a function with the following signature: 
long sumTwoInt(int x, int y)). - Introducing Java Native Access (JNA): Write a Java application that calls a C/C++ native foreign function via the JNA API.
 - Introducing Java Native Runtime (JNR): Write a Java application that calls a C/C++ native foreign function via the JNR API.
 - Motivating and introducing Project Panama: Provide a theoretical and meaningful transition from classical approaches of manipulating off-heap memory and foreign functions to the new Project Panama.
 - Introducing Panama...