Multiple choice technology

Which technique for memory management is used in objective C

  1. Reference counting

  2. Automatic garbage collection

  3. Both a and b

  4. None

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Objective-C traditionally uses reference counting (manual memory management through retain/release/autorelease). While some versions of Objective-C on Mac OS X offered optional garbage collection, it was never available on iOS and has been deprecated. Reference counting (now largely automated through ARC) is the primary technique.