📄 demo.java
字号:
//Demo.java
import java.io.*;
class IOExceptionDemo
{
public IOExceptionDemo()
{
try
{
int a = 0;
int b = 10;
int c = b/a;
}
catch(ArithmeticException e)
{
System.out.println("arithmetic exception");
}
finally
{
System.out.println("Entering finally statement. This must be executed");
}
}
}
public class Demo
{
public static void main(String args[])
{
IOExceptionDemo aIOExceptionDemo = new IOExceptionDemo();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -