Callable และ Future เป็นรากฐานของการดำเนินการงานแบบอะซิงโครนัสใน Java Callable เหมือนกับ Runnable แต่ส่งคืนผลลัพธ์และสามารถส่งข้อยกเว้นที่เลือกได้ อนาคตแสดงถึงการคำนวณที่ค้างอยู่ ซึ่งเป็นตัวจัดการผลลัพธ์ที่จะสามารถใช้ได้ในภายหลัง

Callable<V> — งานที่คืนค่า
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.