📜  我们可以在 try 和 catch 块之间有任何代码吗 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:22.859000             🧑  作者: Mango

代码示例1
We shouldn’t declare any code between try and catch block. 
Catch block should immediately start after try block.
try{
//code
}
System.out.println(“one line of code”); // illegal
catch(Exception e){
//
}