Introduction To Java Programming

In this article we will discuss about the History Of Java, Introduction of Java and the Features Of Java. After reading this article you will be able to define about the History Of Java, Basics Of Java and Features of java programming language, We Will Also Discuss About Different  Types of Java Applications, About Java Virtual Machine (JVM) And ByteCode in Java
Java

Java is a programming language which was developed by James Gosling from Sun Microsystems in 1991. The purpose of developing Java is to write program once and then run this program on multiple operating systems. Sun Microsystems (A Company in which Java was developed) acquired by Oracle Corporation in 2010 so now Java is a product of Oracle Corporation. The first publicly available version of Java (Java 1.0) was released in 1995. Java programs are platform independent that means the program of Java can execute on any operating system or any machine. Java virtual machine (JVM) executes the code of Java.
The current version of Java is Java 1.8 which is also known as Java 8.

Main Points: 
  • Java is an object oriented programming language.
  • It was developed by James Gosling in 1991.
  • The first publicly version of Java was released in 1995 i.e. Java 1.0
  • Now Java is a product of Oracle Corporation.  
  • JVM is required for execute any java program.
Types OF Java Application:
  1. Web Application: Java is used to develop server side web applications.
  2. Desktop Application: It is also known as the Standalone application or window-based application. An Application which is needed to install on almost every machine such as Antivirus.
  3. Enterprise Application: An Application which has the advantage of high-level security, load balancing, and clustering.
  4. Mobile Applications: Java is used to develop mobile applications. Android Application can also be developed by Java.

Features OF Java:

  • Object Oriented: Java supports the features of object oriented programming system.
  • Platform independent: Unlike many other programming language including C and C++, java is platform independent language that mean code written in one operating system can execute on any other operating system and machine.
  • Simple: Java has many features of C and C++ that make it simple and easy.
  • Secure: Java provides a wide range of protection from viruses and malicious programs.  It ensures that there will be no damage and no security will be broken.  
  • Portable: Execuation of Same java program on different machine is possible.
  • Multi-Threaded: The multithreading programming feature in Java allows you to write a program that performs several different tasks simultaneously.     
What is Java Virtual Machine (JVM)?
Before, we discuss about JVM lets see the phases of program execution. Phases are as follows:
 we write the program, then we compile the program and at last we run the program.

1) Writing of the program is of course done by java programmer like you and me.
2) Compilation of program is done by javac compiler, javac is the primary java compiler included in java development kit (JDK). It takes java program as input and generates java bytecode as output.
3) In third phase, JVM executes the bytecode generated by compiler. This is called program run phase.  
So the main task of JVM is to execute the bytecode which is produced by compiler. Each Operating System has different JVM however the output produced by them is same in all operating systems. that's why we call that Java is a platform independent language.

What is bytecode in Java?
As discussed above Java compiler compiles the source code and produce bytecode so that it can be executed by JVM. The bytecode is saved with .class extension by compiler. 

Also Read: Introduction To C | Advantage And Features Of C Language

Conclusion:
So Now we learnt about the History Of Java, Basics Of Java, What is Java Virtual Machine, What is bytecode in Java And  Features Of Java. 

- Also Read: Basic Structure Of C Program | Keywords And Identifiers In C Language

Thank You !!

Tags: History Of Java, Basics Of Java, Introduction to Java, What is Java Virtual Machine, What is bytecode in Java, Features Of Java, Basic Java, Beginner Guide Java, About Java, Type of Application In Java, Java Virtual Machine, Java Bytecode, What is ByteCode, JVM, JDK, What is java development kit