@Override public void checkPermission(Permission perm){
  if (perm instanceof FilePermission) {
  }
 else   if (perm instanceof SocketPermission) {
    SocketPermission sp=(SocketPermission)perm;
    h_Socket(sp);
  }
 else   if (perm instanceof RuntimePermission) {
    RuntimePermission rp=(RuntimePermission)perm;
    h_Runtime(rp);
  }
}

@ Override public void checkPermission ( Permission perm ) { if ( perm instanceof FilePermission ) { } else if ( perm instanceof SocketPermission ) { SocketPermission sp = ( SocketPermission ) perm ; h_Socket ( sp ) ; } else if ( perm instanceof RuntimePermission ) { RuntimePermission rp = ( RuntimePermission ) perm ; h_Runtime ( rp ) ; } }
check a permission . this performs the check statement for the permission type and handles it accordingly
