In this first tutorial I will introduce you about the Java Technologies and teach you how it can be used in developing the various types of applications for business.
Java is Programming language as well as the platform for developing and deploying the applications of various types. Java is Programming Language as it provides the API, Compiler and the testing tools for developing the applications. It is a platform as it provides the Java Virtual Machine for running the applications on different operating system.
Java as a Programming Language
Java is a Programming Language which provides many features and used to compile the Java program and test the application using the JDK. The main feature of Java Programming Language is its platform independence, means once it is developed on one platform it can run on any other platform (Windows. Linux, Unix, Mac etc..). So, this feature of Java Programming is also known as write one and run anywhere.
Here are the features of the Java Programming Language:
How Java Program Works?
Java program is written in text editor and saved at simple text file with the .java extension. For example HelloWorld.java is very simple program in Java.
Then Java compiler is used to compile the program. If no error is found in the program Java compiler compiles the file into a bytecode file. For example if you compile the HelloWorld.java file it will produce the HelloWorld.class file.
The Java interpreter is used for running the Java program. Following diagram shows the process of compilation and execution of Java program.
Through Java interpreter (JVM) you can run the compiled program on any other OS and platform.
Java as a Platform
The term Platform is used for the Hardware and Software environment which actually runs the software. These days there are many platforms available for the users such as Windows, Linux, Solaris, Mac OS etc. Java program can be run on all these platforms.
The Java Platform (JVM) is software only platform which runs on all the OS (Windows, Linux, Solaris, Mac OS). There are following components of the Java Platform:
Following diagram shows the stack of the Java Platform:
Since Java is platform-independent environment and it runs in JVM, it is a bit slower then the native programs. But the advancement in the compiler and JVM technologies makes it comparable to the native code. More over you will get the portability and platform independence with the Java Programming Language.
Distribution to the Java Program
Since Java is platform independent programming language it can run on any platform. Once Java file is compiled into .class file it can be distributed on any platform. Following diagram shows how a program can run on different platform:
What Java Programming Technology Can do?
Java is general-purpose, high-level, object oriented programming language and a software platform for deploying the applications. It gives you following features for your applications:
Why Java is important as top Programming Language?
Java Programming Language is one of the top object oriented programming language used in the Software industry. Java Programming Language can be leaned with less effort and it enables the developers to better code.
Here are thing in which Java Programming Language will help you much:
Read More tutorials of Master Java in a week series.
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial
Discuss: Introduction to Java Technology
Post your Comment