Analyze the following code:
```
public class Test {
public static void main(String[] args)
throws MyException {
System.out.println("Welcome to Java");
}
}
class MyException extends Error {
}
```
a. You should not declare a class that extends Error, because Error raises a fatal error that terminates the program.
b. You cannot declare an exception in the main method.
c. You declared an exception in the main method, but you did not throw it.
d. The program has a compile error.
a. You should not declare a class that extends Error, because Error raises a fatal error that terminates the program.
Computer Science & Information Technology