✏️ Explanatory Question
What is the role of
(i) throws keyword?
(ii) throw keyword?
What is the role of
(i) throws keyword?
(ii) throw keyword?
Answer: Declares exceptions that a method may pass to the calling method.
Answer: Used to explicitly throw an exception.