22.2k views
2 votes
Whichof following can be thrown using the throw statement?ErrorThrowableExceptionRuntimeExceptionAll of Given

User Djnz
by
6.6k points

1 Answer

1 vote

Answer: Exception

Explanation: A throw statement is a statement that whenever it gets executed ,it stops the flow of the execution immediately. The throw statement has a throw keyword for stopping of the execution which is denoted as the exception. A checked or unchecked exception can only be thrown. The compiler of a program has the function of giving warning if there are chances of exception.

User Musicamante
by
5.7k points