class Example5_5 {
    static void demoproc() throws NullPointerException{     //ÉùÃ÷Òì³£
        throw new NullPointerException("demo");         // Å×³öÒì³£
    }
    public static void main(String args[]) {
        try {
            demoproc();
        } 
        catch (NullPointerException e) {
            System.out.println(e.getMessage());
        }
    }
}