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 is inheritance in objective c?

1 Answers  


What is #import?

1 Answers  


What are the attributes of category?

1 Answers  


Can objective c run on windows?

1 Answers  


How to convert string to nsnumber in objective c?

1 Answers  


What is an nsobject?

1 Answers  


What are the main objectives of training?

1 Answers  


What is delegation protocol?

1 Answers  


How do you define a protocol?

1 Answers  


What is difference between c and objective c?

1 Answers  


What is atomic property?

1 Answers  


How is string represented in objective-c?

1 Answers  


Categories