What is mark and sweep algorithm?
Answer / Jitendra Kumar Sahu
Mark-and-sweep is a garbage collection algorithm used in memory management to identify and free up objects that are no longer being referenced by the program. It works by first 'marking' reachable objects, then 'sweeping' (deallocating) unreachable objects.
| Is This Answer Correct ? | 0 Yes | 0 No |
How is #import different from #include?
What are the two types of tangible property?
Mention whether nsobject is a parent class or derived class.
Is nsobject a parent class or a derived class?
What is a class in objective c?
Is reference counting garbage collection?
What is a process and thread?
What is the protocol in objective c?
How do you check for leaks?
Explain the difference between atomic and nonatomic synthesized properties.
Can we create dynamic classes in objective c? If yes, explain how to create with a valid use case?
What are nsautoreleasepool and how can we use them?