Answers for "can we have try catch inside try block"

3

try catch

try {
  try_statements
}
catch (exception_var) {
  catch_statements
}
finally {
  finally_statements
}
Posted by: Guest on October-07-2021
0

can we have any code between try and catch blocks

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){
//
}
Posted by: Guest on December-01-2020

Code answers related to "can we have try catch inside try block"

Code answers related to "Javascript"

Browse Popular Code Answers by Language