Qualcomm interview question

Explain JNI and design patterns in Java.