public class Teste
{
public static void main(String args[])
{
try
{
RuntimeException re = null;
throw re;
}
catch(Exception e)
{
System.out.println(e);
}
}
}
What will be the result of attempting to compile and run the following program?
a. The code will fail to compile, since RuntimeException cannot be caught by catching an Exception.
b. The program will fail to compile, since re is null.
c. The program will compile without error and will print java.lang.RuntimeException when run.
d. The program will compile without error and will print java.lang.NullPointerException when run.
e. The program will compile without error and will run and print ‘null’.
Não vale compilar !!! 
Valeu !!!
