Java · Easy
Difference between throw and throws keywords.
JavaCore JavaException Handling
Answer preview
throw — Used inside a method body to explicitly throw an exception object. It transfers control to the nearest enclosing catch block or propagates up the call stack.…