First page Back Continue Last page Graphics


What Is Java? (continued)

Benefits of Java

Java provides several benefits, including the following:

Object-Oriented: An object is an entity that has data attributes, plus a set of functions that are used to manipulate the object. Java is a strongly typed language, which means that everything in Java must have a data type—there are no variables that assume data types (as in Visual Basic).

Interpreted and Platform Independent: One of the key elements of Java is platform independence. A Java program that is written on one platform can be deployed on any other platform. This is usually referred to as “write once, run anywhere” (WORA) and is accomplished through the use of the Java Virtual Machine (JVM). The JVM runs on a local machine, interprets the Java bytecode, and converts it into platform-specific machine code.

Dynamic and Distributed: Java classes can be downloaded dynamically over the network when required. In addition, Java provides extensive support for client/server and distributed programming.

Multithreaded: Java programs can contain multiple threads to carry out many tasks in parallel. The multithreading capability of Java is built-in and is under the control of the platform-dependent JVM.

Robust and Secure: Java has built-in capabilities to prevent memory corruption. Java automatically manages the processes of memory allocation and array-bounds checking. It prohibits pointer arithmetic and restricts objects to named spaces in memory.