Does copy increase retain count?



Does copy increase retain count?..

Answer / Jitendra Kumar Ray

Yes, when you use the copy method on an object in Objective-C, the retain count of the original object is incremented by 1 (because a new copy is created), and the retain count of the new copy is also set to 1.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

Is objective c garbage collected?

1 Answers  


What is class extension?

1 Answers  


What optional binding?

1 Answers  


What is polymorphism in objective-c?

1 Answers  


What is the difference between function and objective?

1 Answers  


What is strong and weak in objective c?

1 Answers  


What does alloc mean in objective c?

1 Answers  


How to convert nsnumber to nsstring in objective c?

1 Answers  


What is an objective description?

1 Answers  


What are the main objectives of training?

1 Answers  


Is objective c better than swift?

1 Answers  


What do you mean by category and when to use it?

1 Answers  


Categories