What happen if we send any message to an object which is released?
Answer / Chandan Kumar Mishra
Sending a message to a released Objective-C object results in undefined behavior, and can lead to crashes or memory leaks. When you release an object, it becomes eligible for deallocation by the system's garbage collector or ARC (Automatic Reference Counting). Once deallocated, the object no longer exists and cannot receive messages.
| Is This Answer Correct ? | 0 Yes | 0 No |
Which language does apple use?
What is the difference between nsstring and string?
What is the main difference between function calls and messages?
What is difference between method and constructor?
Is reference counting garbage collection?
What is a delegate objective c?
How do you define a protocol?
What does @synchronized() do?
How declare methods in objective c?
What is better objective c or swift?
Why is objective c used?
What is block variable?