throw and throws

Throw and throws keywords

Throw and throws keywords throw keyword:     Sometime we can create exception object explicitly, we can handover to the JVM manually. For this we have to use throw keyword.   throw new ArithmeticException("/ by zero"); …

Load More
That is All