Question about multiple 'catch'
- by chun
Can anyone tell me why the output of this class is 'xa'?
why the other exception won't be caught?
public class Tree {
public static void main(String... args){
try
{
throw new NullPointerException(new Exception().toString());
} catch (NullPointerException e)
{
System.out.print("x");
}
catch…