Explain when to use nsarray and nsmutablearray. Which one is faster and threadsafe?
Answer / Babalu Gautam
NSArray is used when data modification is not required, as it is read-only. NSmutableArray is used for modifying the content of an array. Regarding speed, NSArray is generally faster because it's immutable, but NSmutableArray allows for dynamic changes to the data. Both are not threadsafe; they do not provide concurrent access safety.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to call methods in objective c?
Why do we require class extension?
Explain the way messaging works in objective-c?
What is dot notation?
What is .h and .m file in xcode?
Is method and function same?
Does objective c have function overloading?
What are the advantages of swift over objective c?
Explain the difference between #import and #include in objective-c?
What is the difference between string and nsstring?
What is objective c programming used for?
What number distinctive annotations is accessible in objective-c?