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

