...
Java is a relatively secure language: there . There is no explicit pointer manipulation; array and string bounds are automatically checked; attempts at referencing a null pointer are trapped; the arithmetic operations are well defined and platform independent, as are the type conversions. The built-in bytecode verifier ensures that these checks are always in place. Moreover, there are Java provides comprehensive, fine-grained security mechanisms available in Java that can control access to individual files, sockets, and other sensitive resources. To take advantage of the security mechanisms, the Java Virtual Machine (JVM) must have a security manager in place. This is an ordinary Java object of class java.lang.SecurityManager (or a subclass) that can be put in place programmatically but is more usually specified via a command line argument.
There areJava program safety, however, ways in which Java program safety can be compromised. The remainder of this chapter describes misuse use cases under which Java programs might be exploited , and examples of guidelines rules which mitigate against these attacks. Not all of the rules apply to all Java language programs; frequently, their applicability depends upon on how the software is deployed and your assumptions concerning trust.
...