iOS Developer Question:

Explain keywords alloc and new?

iOS Developer Interview Question
iOS Developer Interview Question

Answer:

The alloc keyword is used to create a New Memory Location in the System. However, it does not initialize it. In case of New keyword, it also helps to create a New Memory Location in the system. However, it can initialize the Contents unlike the alloc keyword.


Previous QuestionNext Question
Explain App ID?What is a Protocol in Objective-C Programming Language?