Foreign Function & Memory API (FFM API) ซึ่งสรุปใน Java 22 โดยเป็นส่วนหนึ่งของ Project Panama เป็นการทดแทน JNI ที่ทันสมัย ช่วยให้โค้ด Java เรียกใช้ฟังก์ชันเนทิฟและจัดสรรหน่วยความจำเนทิฟได้อย่างปลอดภัย — ทั้งหมดใน Java ล้วนๆ โดยไม่ต้องเขียน Cแม้แต่บรรทัดเดียว นามธรรมที่สำคัญสามประการคือ MemorySegment (ขอบเขตของหน่วยความจำ), Arena (ตัวจัดการอายุการใช้งาน) และ MethodHandle (การอ้างอิงที่สามารถเรียกได้ไปยังฟังก์ชันเนทิฟ)

ประเภท Core FFM API
Full content is available with a subscription.
Get full access to all courses on the platform for one year with a single payment.
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.