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 are some of the major differences between objective c and swift?



What are some of the major differences between objective c and swift?..

Answer / Pankaj Mishra

"Objective-C is a superset of C, originally developed in the early 1980s by Brad Cox and Tom Love. Swift, on the other hand, is a newer language developed by Apple since 2014 as a replacement for Objective-C. Some major differences between them include:
- Syntax: Swift has a more modern syntax, focusing on readability and safety with features like optionals, error handling, closures, and generics, whereas Objective-C uses C-like syntax.
- Runtime: Swift is built on a newer foundation called Swift Standard Library (Swift SL) rather than the Objective-C runtime library used by Objective-C. This makes Swift faster and more efficient.
- Error Handling: In Swift, errors are handled with do-catch blocks, whereas in Objective-C, errors are usually passed around as NSException objects.
- Memory Management: Swift manages memory automatically through ARC (Automatic Reference Counting), while Objective-C developers have to manually manage memory using retain/release or ARC.
"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

What is an instancetype?

1 Answers  


Who introduced objective-c & when?

1 Answers  


What is polymorphism in objective-c?

1 Answers  


How we can layout subviews in a view?

1 Answers  


What are the characteristics of the category?

1 Answers  


Does objective c have multiple inheritance? Why not? How to imitate various inheritance?

1 Answers  


What is difference between objective c and swift programming?

1 Answers  


Explain how to call a function in objective-c?

1 Answers  


What is difference between nsstring and nsmutablestring?

1 Answers  


Explain types of protocol?

1 Answers  


What is the main difference between function calls and messages?

1 Answers  


Can you write setter method for a retain property?

1 Answers  


Categories