mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
21 lines
250 B
Java
21 lines
250 B
Java
|
|
public class Divide_2
|
||
|
|
{
|
||
|
|
static void poo()
|
||
|
|
{
|
||
|
|
int n = 4/0;
|
||
|
|
}
|
||
|
|
public static void main(String[] argv)
|
||
|
|
{
|
||
|
|
try
|
||
|
|
{
|
||
|
|
poo();
|
||
|
|
}
|
||
|
|
catch (ArithmeticException _)
|
||
|
|
{
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
throw new RuntimeException();
|
||
|
|
}
|
||
|
|
}
|