Return to the main page Home
Learn by reading articles about Java Library
Download free Java software here Applets
Play quality Java games online Arcade
Visit our links and play the Treasure Hunt Plaza
Sample site only. Please visit http://geocities.datacellar.net/davidchan for a complete list of sites created by David Chan.

Security in Java™


Security is extremely important as the Internet grows. Java protects users against nasty Java code via a number of methods. The Java compiler and run time system implements several layers of defense against potentially incorrect code. First, memory layout is deferred to run time, guarding against altered compilers. Also, Java programmers are opaque to the memory allocation and referencing model which is controlled entirely by the underlying run-time system.

Secondly, the Java run-time system subjects incoming code to bytecode verification. The range of tests makes sure the code does not forge pointers and doesn't violate access restrictions. Thirdly, the Java bytecode loader ensures that classes don't violate access restrictions or name space when they are loaded into the system. There is one name space for classes that come from the local file system, and a separate name space for each network source. Finally, the API specific security prevents applets from doing destructive things.

Java is secure to survive in the network-based environment. So far people on the Internet have sacrificed security for maximum flexibility. Java can help enable much better security.

Next article


Return to the top of the page
Top of page


| Home | Library | Applets | Arcade | Plaza |

Please send any feedback to David Chan

1