Introduction
Java is a platform independent object-oriented programming language developed by Sun micro systems in 1995 June. Java was designed for the development of software for consumer electronic devices like TVs, VCRs, and other electronic devices.
Evolution
1990 |
Sun micro systems decided to develop a special software that could be used to manipulate consumer electronic devices. |
1991 |
After exploring the possibility of using the most popular object-oriented language C++, the team announced a new language named “Oak” |
1992 |
The team demonstrated the application of their new language to control a list of home appliances using a handheld device with a tiny touch-sensitive screen. |
1993 |
The World Wide Web appeared on the internet and transformed the text-based internet into a graphical rich environment. The green project team came up with the idea of developing web applets. |
1994 |
The team developed a web browser called “HotJava” to locate and run applet programs on the internet. |
1995 |
Oak was renamed “JAVA” due to some legal problems. Java is just a name and is not an acronym. |
1996 |
Java established itself not only as a leader for internet programming but also as a general-purpose, object-oriented programming language. Java found its home. |
Features
- Compiled and Interpreted
- Platform independent and portable
- Object-Oriented
- Robust and Secure
- Distributed
- Familiar, Simple and Small
- Multithreaded and interactive
- High Performance
- Dynamic and Extensible.
Compiled and Interpreted: Usually, a computer language is either compiled or interpreted. Java combines both these approaches thus making Java a two-stage system. First, the Java compiler translates source code into what is known as bytecode instructions. Bytecodes are not machine instructions and therefore in the second stage, the Java interpreter generates machine code that can be directly executed by the machine running the Java program.
Platform-Independent and Portable: The most significant contribution of Java over other languages is its portability. Java programs can be easily moved from one computer system to another, anywhere and anytime. Changes and upgrades in operating systems, processors, and system resources will not force any changes in Java programs. This is the reason why Java has become a popular language for programming on the internet which interconnects different kinds of systems worldwide.
Object-Oriented: Java is a true Object-Oriented language. Almost everything in Java is an object. All program code and data reside within objects and classes. Java comes with an extensive set of classes, arranged in packages, that we can use in our programs by inheritance.
Robust and Secure: Java is a robust language. It provides many safeguards to ensure reliable code. It has strict compile-time and runtime checking for data types. It is designed as a garbage-collected language relieving programmers of virtually all memory management problems.
Distributed: Java is designed as a distributed language for creating applications on networks. It has the ability to share both data and programs. Java applications can open and access remote objects on the internet as easily as they can do in a local system.
Simple, Small and Familiar: Java is a small and simple language. Many features of C and C++ that are either redundant or sources of unreliable code are not part of Java. Java does not use pointers, preprocessor header files, goto statement and many others.
Multithreaded and Interactive: Multithreading means handling multiple tasks simultaneously. Java supports multithreaded programs. This means that we need not wait for the application to finish one task before beginning another. For example, we can listen to an audio clip while scrolling a page.
High Performance: Java performance is impressive for an interpreted language, mainly due to the use of intermediate bytecode. According to Sun, Java speed is comparable to native C/C++. Java architecture is also designed to reduce overheads during runtime further.
Dynamic and Extensible: Java is a dynamic language. Java is capable of dynamically linking in new class libraries, methods, and objects. Java can also determine the type of class through a query, making it possible to either dynamically link or abort the program depending on the response. Java programs support functions written in other languages such as C and C++. These functions are known as native methods. This facility enables programmers to use the efficient functions available in these languages. Native methods are linked dynamically at runtime.
Java and Internet
Java is strongly associated with the internet because the first application program written in Java was HotJava, a web browser to run applets on the internet. Internet users can use Java to create applet programs and run them locally using a Java-enabled browser such as HotJava.
Java and World Wide Web
The World Wide Web is an open-ended information retrieval system designed to be used in the internet’s distributed environment. This system contains what are known as web pages that provide both information and controls.
Machine neutral
The compiler converts the source code files into bytecode files. These codes are machine-independent and therefore can be run on any machine. That is, a program compiled on an IBM machine will run on a Macintosh machine. Java interpreter reads the bytecode files and translates them into machine code for the specific machine on which the Java program is running. The interpreter is therefore specially written for each type of machine.
For
More Explanation
&
Online Classes
More Explanation
&
Online Classes
Contact Us:
+919885348743
+919885348743
