Online Java Compiler By
JavaTpoint.com
public class TryCatchExample1 { public static void main(String[] args) { int data=50/0; //may throw exception System.out.println("rest of the code"); } }
Output