public class ExceptionHandlingDemo { /* Error handling demonstration */ public static void main(String[] args) { // Compile time errors // System.out.println("There is a compile time error here, the program will not compile") String name; System.out.println(name); // Runtime error - //String[] names = {"Dodge"}; //System.out.println(names[1]); // this part of the code throws an exception which crashes your program - it stops System.out.println("This program is still running"); System.out.println("This buggy program was provide by Dodge"); // Handling Errors so your program does not crash. // Logic errors } }