Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between string and nsstring?



What is the difference between string and nsstring?..

Answer / Parvez Aalam

In Objective-C, both String and NSString are used to represent text. However, they have some differences:n1. String: It is a C-based Foundation framework class, which is not object-oriented and has no methods or properties for common string operations like length, substring, etc. On the other hand, it is more efficient due to being C based.n2. NSString: It is an Objective-C runtime class, which provides many useful string handling capabilities such as conversion, comparison, searching, and mutation. However, it is less efficient than String because it is object-oriented.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

What is dot notation?

1 Answers  


Is objective c faster than swift?

1 Answers  


What is an example of category?

1 Answers  


Why swift is faster then objective c?

1 Answers  


How to initialize nsmutabledictionary in objective c?

1 Answers  


What is objective c in ios?

1 Answers  


Can you write setter method for a retain property?

1 Answers  


What is the difference between objective c and c++?

1 Answers  


Does objective c have multiple inheritance?

1 Answers  


Is objective c deprecated?

1 Answers  


Why is objective c syntax so weird?

1 Answers  


Explain class definition in objective-c?

1 Answers  


Categories