คีย์เวิร์ด assert จะตรวจสอบค่าคงที่ระหว่างการพัฒนาและการดีบัก การยืนยันจะตรวจสอบเงื่อนไขที่โปรแกรมเมอร์เชื่อว่าจะต้องเป็นจริงเสมอไป หากเงื่อนไขเป็นเท็จ AssertionError จะถูกส่งออกไป การยืนยันจะถูกปิดใช้งานตามค่าเริ่มต้นใน JVM ซึ่งไม่มีค่าใช้จ่ายรันไทม์ในการผลิต

ยืนยันไวยากรณ์
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.