Stack-Repo
/
data
/train
/akash-coded
/FSD_Java
/Lesson-3
/Exception Handling
/Examples
/TryCatchExample1.java
/** | |
* Let's try to understand the problem if we don't use a try-catch block. | |
*/ | |
public class TryCatchExample1 { | |
public static void main(String[] args) { | |
int data = 50 / 0; // may throw exception | |
System.out.println("rest of the code"); | |
} | |
} | |