์ž๋ฐ” Java

์ฐธ์กฐ ์œ ํ˜•

  1. ๊ฐ•ํ•œ ์ฐธ์กฐ Strong References
MyClass myClass = new MyClass();

myClass ๋ณ€์ˆ˜๊ฐ€ ์ฐธ์กฐ๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ๋Š” ํ•œ, MyClass ๊ฐ์ฒด๋Š” GC์˜ ๋Œ€์ƒ์ด ๋˜์ง€ ์•Š๋Š”๋‹ค.
2. ์†Œํ”„ํŠธ ์ฐธ์กฐ Soft References

  1. ์•ฝํ•œ ์ฐธ์กฐ Weak References
  2. ํŒฌํ…€ ์ฐธ์กฐ Phantom References