Explain Throw statement

Throw statement: It is a statement employed to throw an exception. For example:

    throw new IndexOutOfBoundsException(i+" is too large.");

   Related Questions in Programming Languages

©TutorsGlobe All rights reserved 2022-2023.