Once a class has been loaded into the virtual machine and checked by the verifier, the second security mechanism of the Java platform springs into action: the security manager. The security manager is a class that controls whether a specific operation is permitted. Operations checked by the security manager include the following:
• Creating a new class loader
• Exiting the virtual machine
• Accessing a field of another class by using reflection
• Accessing a file
• Opening a socket connection
• Starting a print job
• Accessing the system clipboard
• Accessing the AWT event queue
• Bringing up a top-level window
There are many other checks throughout the Java library.
The default behavior when running Java ...