public class ExceptionDemo5{
    public static void main(String[] argv) throws Exception{
        try{
            Object o = null;
            String s = o.toString();
        }
        catch(Throwable t){
            System.out.println("T");
        }
        /*
          catch(Error r){
          System.out.println("R");
          }
          catch(Exception e){
          System.out.println("E");
          }
          catch(RuntimeException re){
          System.out.println("RE");
          }
          catch(NullPointerException npe){
          System.out.println("NPE");
          }
        */
        finally{
            System.out.println("F");
        }
    }
}

