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 |
What do you understand by protocol?
What are the types of ios binaries you can create using xcode?
What is the difference between weak and unowned?
What is delegation protocol?
What is difference between nil and nill?
What is gcd?
What are the main objectives of training?
How to convert string to nsnumber in objective c?
Which is better swift or objective c?
How do you insert a block?
What is an example of tangible property?
What type of language is objective c?