<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Programming on Khang Nghiem</title><link>https://www.khangnghiem.com/tags/programming/</link><description>Recent content in Programming on Khang Nghiem</description><generator>Hugo</generator><language>vi</language><lastBuildDate>Sun, 31 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.khangnghiem.com/tags/programming/index.xml" rel="self" type="application/rss+xml"/><item><title>Java: Pass by Value hay Pass by Reference?</title><link>https://www.khangnghiem.com/post/java-pass-by-value-05-2026/</link><pubDate>Sun, 31 May 2026 00:00:00 +0000</pubDate><guid>https://www.khangnghiem.com/post/java-pass-by-value-05-2026/</guid><description>&lt;p&gt;Java chỉ có pass by value. Đây là một trong những nguyên nhân gây ra bug trong Java: developer hiểu sai rằng truyền một object vào hàm là &amp;ldquo;an toàn&amp;rdquo;, không ai ngoài hàm đó có thể thay đổi dữ liệu gốc. Bài viết này giải thích cơ chế từ góc độ thiết kế ngôn ngữ, chỉ ra chính xác bug gì xảy ra khi bạn nhầm, và đưa ra các pattern thực tế để tránh chúng.&lt;/p&gt;</description></item></channel></rss>