See More

public class Exceptions_01{ public static void main(String[] args){ int i=0; int j=0; try { j=18/i; } catch(Exception e) { System.out.println("Something went wrong!"); } System.out.println(j); System.out.println("Hi, from the outside of try catch"); } }