Question OOP-EXC-0048
MediumWhat is the difference between throw and throws in Java?
- A.
throws raises the exception immediately
- B.
throw is only for errors
- C.
They are the same
- D.
throw raises an exception; throws in a method signature declares exceptions it may raise
Sign up free to see the answer and a step-by-step explanation.