>
Advantages of Java Virtual Machine:
Java is the first truly portable language. This is because of JVM architecture which offers several advantages such as: cross-platform portability and security.
- Cross platform portability: The JVM provides cross-platform portability. The programs are written for the JVM, not for the operating system (OS). Because all JVMs look the same to Java programs, you have to write only one version of your program, and it will work on all JVMs. The JVM interprets the byte-code and carries out the program's operations in a way that is compatible with the current hardware architecture and operating system.
- Security: Java has been designed to protect users from malicious programs. Programs from an untrusted source (for example, the Internet) execute in a restricted environment (known as a sandbox). The JVM can then prevent those programs from causing mischief. For example, a Java applet (a small program that runs on a Web page) usually can't access local files or open network connections to arbitrary computers. These restrictions prevent a Web page from erasing your critical files or sending threatening email from your computer.
Comments
Post a Comment