'throw' is used to explicitly throw an exception, while 'throws' declares exceptions a method may pass on.
In Java, 'throw' is used within a method to send an exception, like throwing an object. For example, 'throw new IllegalArgumentException("Invalid input")' sends an exception. 'throws', however, is part of the method signature, indicating that the method might pass the exception handling responsibility to the caller. For instance, 'public void process() throws IOException' tells the caller to handle potential IOExceptions.
Additional Notes
Differentiate between ‘throw’ and ‘throws’ in Java?