A

Admin • 670.22K Points
Coach

Q. Which keyword is used to handle errors in Swift?

  • (A) catch
  • (B) handle
  • (C) try
  • (D) throw
  • Correct Answer - Option(C)
  • Views: 1
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin
`try` is used when calling a throwing function and must be paired with `catch` or `do`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.