Code example for PropertyPermission

0
        int count = 0; 
 
        try { 
 
            try { 
                PropertyPermission pp = new PropertyPermission(null, "read"); 
            } catch (NullPointerException e) { 
                count++; 
            } 
 
            try { 
                java.io.FilePermission fp = 
                    new java.io.FilePermission(null, "read"); 
            } catch (NullPointerException e) { 
                count++; 
            } 
 
            try { 
                java.net.SocketPermission sp = 
                    new java.net.SocketPermission(null, "connect"); 
            } catch (NullPointerException e) {