Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Who calls dealloc method? Can we implement dealloc in arc?



Who calls dealloc method? Can we implement dealloc in arc?..

Answer / Kaleem Salahuddin

The dealloc method is called by the Objective-C runtime when an object is about to be deallocated. However, in ARC (Automatic Reference Counting), you do not need to explicitly call dealloc. Instead, ARC takes care of memory management for you. You can still implement the dealloc method to perform custom cleanup operations if needed, but it will only be called when ARC determines that the object's retain count reaches zero.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

What is a selector objective c?

1 Answers  


How do you add a category in objective c?

1 Answers  


What is struct in objective c?

1 Answers  


Explain the difference between uiwindow and uiview?

1 Answers  


How to call objective c function in swift?

1 Answers  


What is category in objective c?

1 Answers  


Explain when to use nsarray and nsmutablearray. Which one is faster and threadsafe?

1 Answers  


What is the class of a constant string?

1 Answers  


When will you use nsarray and nsmutablearray? Which one is faster?

1 Answers  


Tell me about important protocol being used in objective c?

1 Answers  


What is difference between objective c and c?

1 Answers  


Are id and instancetype same? If not, what are differences between them?

1 Answers  


Categories