What happens when we invoke a method on a nil pointer?



What happens when we invoke a method on a nil pointer?..

Answer / Veeresh Kumar Shakya

When you attempt to call a method on a nil (null) object in iOS, the program will crash with an exception known as 'NSInvalidArgumentException'.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

What is the current iphone ios?

1 Answers  


What is ios realm?

1 Answers  


Explain usage of struct?

1 Answers  


Define cocoa?

1 Answers  


What is delegate in ios with example?

1 Answers  


Outline the class hierarchy for a UIButton until NSObject.

1 Answers  


Explain @synchronized ,@dynamic

1 Answers  


Explain Inapp purchase in iOS

1 Answers  


What is the viper?

1 Answers  


What is nsmanagedobjectmodel?

1 Answers  


What is singleton pattern in ios?

1 Answers  


What happens when we invoke a method on a nil pointer?

1 Answers  


Categories