Throw a new exception
Source code
1
class
ThrowANewException {
2
3
void
m() {
4
throw
new
NullPointerException();
5
}
6
7
}
Bytecode
Java compiler version:
21
Other examples
Main page