Example & Tutorial understanding programming in easy ways.

What is difference between throw and throws keyword in Java?

The throws keyword is used with method signature to declare the exceptions that the method might throw whereas throw keyword is used to disrupt the flow of program and handing over the exception object to runtime to handle it.

Read More →