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...


What happens if you add your just created object to a mutable array, and you release your object?



What happens if you add your just created object to a mutable array, and you release your object?..

Answer / Sanjeev Suman

When you add a newly created object to a mutable array and then release the object, the retain count of the object becomes 1 (because the array retains it). However, since you've also released it manually, its retain count will eventually reach zero, and it will be deallocated, causing the object to disappear from the array.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

What are the main objectives of training?

1 Answers  


Can we create dynamic classes in objective c?

1 Answers  


When might you use a cfarray/dictionary instead of a nsarray/dictionary?

1 Answers  


What is nsarray objective c?

1 Answers  


What are the different types of protocols?

1 Answers  


What is difference between method and constructor?

1 Answers  


How to call function?

1 Answers  


What does mean in objective c?

1 Answers  


What is difference between null and nil?

1 Answers  


Can you retain delegates?

1 Answers  


Tell us the result when you invoke a particular method on a nil pointer?

1 Answers  


Can you learn swift without knowing objective c?

1 Answers  


Categories