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 |
Explain the types of protocol?
What is retain count?
What are the delegate?
What is block in objective c?
What is difference between c and objective c?
What is gcd?
Explain how the class “implementation” is represented in objective-c?
How to call function?
What is the difference between a script file and a function matlab?
What is the difference between underscore and self (i.e self.xx and _xx) ?
What is a block objective c?
What are the characteristics of the category?