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 |
Is a fact objective?
What is the difference between c and objective c?
What is assign property in objective c?
Who calls dealloc method?
How to convert objective c project to swift?
Is objective c better than swift?
What are the different types of protocols?
What is dot notation?
Can you please explain the way messaging works in objective-c?
Is objective c and c the same?
Is method and function same?
Is objective c type safe language?