Why Do We Use Java?: Glossary Web Publishing With Java
Why Do We Use Java?: Glossary Web Publishing With Java
Why Java?
Why use Java for Distributed Internet and Intranet Applications? Why use Java for Database Connectivity? Why use Java When you could use ActiveX? Why not use Java When you could use ActiveX?
Why Java?
Java has created a huge amount of excitement within the internet community. Java is a standard, consistent, and predictable way of presenting or manipulating data. Platform independence alone provides enough incentive for many people to choose Java over proprietary languages and tools.
Java Features
Platform Independence The concept of Write-once-run-anywhere (known as the Platform independent) is one of the important key feature of java language that makes java as the most powerful language. The programs written on one platform can run on any platform provided the platform must have the JVM.
Java Features
Simple There are various features that makes the java as a simple language. Programs are easy to write and debug because java does not use the pointers explicitly. It is much harder to write the java programs that can crash the system but we can not say about the other programming languages. It also has the automatic memory allocation and deallocation system.
Java Features
Object-Oriented To be an Object Oriented language, any language must follow at least the four characteristics. Inheritance Encapsulation Polymorphism Dynamic binding
Java Features
Robust Java has the strong memory allocation and automatic garbage collection mechanism. It provides the powerful exception handling and type checking mechanism as compare to other programming languages. Compiler checks the program whether there any error and interpreter checks any run time error and makes the system secure from crash. All of the above features makes the java language robust.
Java Features
Distributed The widely used protocols like HTTP and FTP are
developed in java. Internet programmers can call functions on these protocols and can get access the files from any remote machine on the internet rather than writing codes on their local system.
Java Features
Portable The feature Write-once-run-anywhere makes the java language portable provided that the system must have interpreter for the JVM.
Java Features
Dynamic While executing the java program the user can get the required files dynamically from a local drive or from a computer thousands of miles away from the user just by connecting with the Internet. Secure Java does not use memory pointers explicitly. Security manager determines the accessibility options of a class like reading and writing a file to the local disk. Java uses the public key encryption system to allow the java applications to transmit over the internet in the secure encrypted form.
Java Features
Performance In the beginning interpretation of bytecode resulted the performance slow but the advance version of JVM uses the adaptive and just in time compilation technique that improves the performance.
Java Features
Multithreaded Java is also a Multithreaded programming language. Multithreading means a single program having different threads executing independently at the same time. Multiple threads execute instructions according to the program code in a process or a program. Multithreading works the similar way as multiple processes run on one computer.
Java Features
Interpreted With an interpreted language such as Java, programs run directly from the source code. The interpreter program reads the source code and translates it on the fly into computations. Thus, Java as an interpreted language depends on an interpreter program.
Java Features
Architecture-Neutral In the world of network it is essential that the applications must be able to migrate easily to different computer systems. Not only to computer systems but to a wide variety of hardware architecture and Operating system architectures as well. The Java compiler does this by generating byte code instructions, to be easily interpreted on any machine and to be easily translated into native machine code on the fly. The compiler generates an architecture-neutral object file format to enable a Java application to execute anywhere on the network and then the compiled code is executed on
Why not use Java When you could use ActiveX? There are many reasons, to use Java on the internet and within a corporate intranet especially if the intranet is sufficiently heterogeneous mixture of platforms. If the intranet consists of all Microsoft platforms, then it is better to use ActiveX.