1

When we use "throws" keyword, how an exception is handles and who handles it for us.

1 Answers1

2

When you use a throws keyword it delegates handling of the Exception to whoever is calling method. They need to handle in a try-catch or re-throw the Exception.

Nicholas Hirras
  • 2,592
  • 2
  • 21
  • 28