Copyright © 2001 Qusay H. Mahmoud
18
Security….
lThe built-in Java safety features ensures that the Java system is not subverted by invalid code.
lIt is not able to protect against malicious code
–File f = new File(“path to a sensitive file”);
–if (f.delete() == true) {
–    System.out.println(“file has been deleted”);
–} else {
–    System.out.println(“operation is not allowed”);
–}