This code has an unreachable catch block and the Java compiler does not produce an error it produces a warning. I can't figure out why. Please help!
class ParentException extends Exception {}
class ChildException extends ParentException {}
public class Scratch {
public static void foo() throws ChildException {}
public static void main(String args[]) {
try {