Table of Contents

Java

Java Conceptuel Diagram

1)

Why Java

Why has Java become so popular among application developers? Primarily because Java makes application developers more productive. It is a modern, robust, object-oriented language. Java’s unprecedented popularity stems from the following three benefits:

The Java language is easier to understand (and write) than languages such as C and C++ because Java doesn't use pointers.

Fundamental

Library

Archive

Java for enterprise application — a server language

Much of Java’s initial popularity came from its suitability for adding dynamic content to web pages, in the form of mini applications — “applets” — that run on the client machine. However, Java is moving rapidly toward its primary use in the future: writing enterprise and Internet applications that can be deployed in either client-server or intranet/Internet configurations. There are several reasons for Java’s popularity as a server language.

Java is a safe language

And is therefore ideally suited for database integration. Because the database must be a safe environment and provide the foundation for several mission-critical applications, Oracle does not allow application code that could potentially compromise the integrity of the database to run inside the database. For example, Oracle does not permit application code written in “unsafe” languages like C or C++ to be executed in the same address space as the database. Although languages like C provide tremendous flexibility to application developers, they also have several pitfalls. Even experienced C and C++ programmers make these errors:

Any of these errors in an application can compromise the integrity of the database and halt missioncritical applications. In contrast, Java is a strongly-typed language and includes native support for arrays and strings and built-in support for memory management. The garbage collection mechanism built into the Java language frees application developers from allocating and deallocating memory, thereby eliminating problems of memory corruption and memory leaks.

Java is platform-independent

Apart from being a safe language, Java on the server offers many of the same benefits to application developers that it does on the client. Because Java is platform-independent, application logic developed in Java can easily be deployed on any server that supports Java. This enables true application partitioning in a multi-tier environment. Application programs written in Java can easily be migrated to another server without having to rewrite the application. Enterprises can leverage these benefits to improve time-to-market and lower system development and administration costs.

Client or a server environment

Java is a full-featured language whose expressive power is close to C. It can be used to develop any kind of applications in a client or a server environment.

Documentation / Reference