0% found this document useful (0 votes)
54 views

Why Do We Use Java?: Glossary Web Publishing With Java

Java is widely used for distributed internet and intranet applications for several reasons: it allows state awareness across requests, reuse of code on client and server sides, input validation on the client, and efficiency. Java also enables software agents, secure commerce applications, and concurrent/multithreaded applications. Java facilitates database connectivity through JDBC. While ActiveX runs only on Windows, Java runs on any machine with a JVM, is more secure, and its component model JavaBeans is gaining acceptance. The only reason to use ActiveX over Java is for intranets consisting only of Microsoft platforms.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views

Why Do We Use Java?: Glossary Web Publishing With Java

Java is widely used for distributed internet and intranet applications for several reasons: it allows state awareness across requests, reuse of code on client and server sides, input validation on the client, and efficiency. Java also enables software agents, secure commerce applications, and concurrent/multithreaded applications. Java facilitates database connectivity through JDBC. While ActiveX runs only on Windows, Java runs on any machine with a JVM, is more secure, and its component model JavaBeans is gaining acceptance. The only reason to use ActiveX over Java is for intranets consisting only of Microsoft platforms.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 21

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 use Java for Distributed Internet and Intranet Applications?


Some of the reasons for using java on the internet include: State Awareness Because HTTP is a stateless protocol, keeping track of a chain of request requires the passing of a unique identifier with each request. This additional overhead is avoided by implementing an applet or servlet in Java. In the applet case, state information can be maintained on the client side, while in the servlet case, state information can be maintained on the server side. Java offers a third, distributed approach using RMI or CORBA which eliminates the need to distinguish between the server and the client, and state information exists on

Why use Java for Distributed Internet and Intranet Applications?


Reuse The availability of servlet API allows java functionality developed for the client side to be effectively reused on the server side. Input Validation Rather than prompting for a value in an html form input, that value could be entered into a form in an applet that validates the input amount as the user enters it on the client side. Efficiency Applets can display data without information about how the data should be formatted. For this reason, applets can sometimes perform tasks more efficiently than html.

Why use Java for Distributed Internet and Intranet Applications?


Servlets, provide an even greater performance advantage when used in place of the traditional CGI mechanism. Agents Software agents roam throughout computer networks delivering messages or gathering information. Because Java runs on any platform, agents implemented in Java can roam further afield than agents implemented in other languages. Commerce Applications The Java language supports the level of security required by commerce applications and provides an excellent dynamic infrastructure on which to build the distributed commerce application of the future.

Why use Java for Distributed Internet and Intranet Applications?


Concurrent Applications Java provides a highly integrated, multithreaded programming environment that is relatively easy to use. Distributed internet applications usually must do more than one thing at the same time.

Why use Java for Database Connectivity?


Java provides an excellent tool for database connectivity. Almost any application, whether on the client or server side, needs to access a database at some point. Java abstracts a database into a series of classes and interfaces, that effectively hide the implementation of the database drivers. The specification is called Java Database Connectivity (JDBC), and drivers already exist for most applications. Java code written to access a database runs on any platform and with any database.

Why use Java When you could use ActiveX?


Java runs on any machine with Java Virtual Machine or a java enabled browser. ActveX runs on any 32-bit windows machine ActiveX controls are larger than compiled java byte code. ActiveX is less secure than Java in an untrusted environment. Finally, Javas component model, JavaBeans, is gaining industry- wide acceptance.

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.

You might also like