String เป็นหนึ่งในคลาสที่มีการใช้งานมากที่สุดใน Java สตริงคือลำดับอักขระ Unicode ที่ไม่เปลี่ยนรูป "ไม่เปลี่ยนรูป" หมายความว่า เมื่อสร้างออบเจ็กต์ String แล้ว จะไม่สามารถเปลี่ยนแปลงได้ — ทุกการดำเนินการที่ดูเหมือนจะแก้ไขสตริงจะสร้างออบเจ็กต์ใหม่ขึ้นมาจริง ๆ

การสร้างสตริง
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.