Programming Language Java – Learn Step by Step

Programming Language Java – Learn Step by Step

WHAT IS JAVA

Programming Language Java. Java is a fast and safe programming language, Java is Used in Web-Based Programming, Mobile Application Development, Game Development, etc. From computer to the data center, scientific supercomputers, game consoles, Internet to mobile operating systems, Java is used everywhere.

Java is divided into three parts:

  1. Micro Edition (J2ME)
  2. Standard Edition (J2SE)
  3. Enterprise Edition (J2EE)

TYPES OF JAVA APPLICATIONS

Java is used to develop various kinds of applications, which are as follows:

Standalone Applications:

These are programs that do not require a browser to be Execute. These are quickly run on any computer. They can be run on the Command Prompt.

Applets:

These are programs that require a browser to be run. These programs run on Web pages. This applet program never accesses the resources of a Local Machine.

Web Applications:

These programs are designed to increase the functionality of the Web server. They do not have a GUI (Graphical User Interface).

Distributed Applications:

This is a collection of Java Classes, which can be easily reused in any other Java program.

HISTORY OF JAVA

Java is a programming language developed by James Gosling at Sun Microsystems and was published in 1995. The Java programming language initially from The Green Project. The project was started by Patrick Naughton, Mike Sheridan, James Gosling, and Bill Boy, in which nine other Sun Microsystems programmers were included. To run this project, Sun Microsystems planned to create an operating system built with C ++ language; however, James Gosling was not satisfied with the programming language C ++, and ultimately he would make his programming language called Oak decided. The name of which was taken from a tree appearing from the window of its office. Oak was based on C ++ language syntax but was more comfortable, more stable and better network support programming than Oak C ++. Apart from this, Oak has been made Pure Object Oriented. The oak language has been created as a language which is not connected to a platform (cross-platform or multi-platform). At that time, the Internet started a new history of the WWW (World Wide Web). Sun Microsystems felt that Oak is suitable for Multilingual Platform and Interactive and Distributed programming.

Versions OF JAVA VERSION

  • JDK Alpha and Beta (1995)
  • JDK 1.0 (23rd January 1996)
  • JDK 1.1 (19th February 1997)
  • J2SE 1.2 (8th December 1998)
  • J2SE 1.3 (8th May 2000)
  • J2SE 1.4 (6th February 2002)
  • J2SE 5.0 (30th September 2004)
  • Java SE 6 (11th December 2006)
  • Java SE 7 (28th July 2011)
  • Java SE 8 (18th March 2014)

FEATURES OF JAVA

Java is a Pure Object Oriented Programming Language developed by James Gosling at Sun Microsystems. Java is a platform open source programming language.

Simple and Powerful:

Java was designed in such a way that it is easy to learn and easy to use.

Safe:

Java’s secure feature, which is free of virus-free, tamper-proof, does not have any security violation, and it is based on the technology of Public Key Encryption.

Architecture Neutral:

Java compiler generates an Architectural Neutral Object File format, which makes the compiled code worth executing in many ways, the Java runtime system.

Multithreaded:

Java is a multithreaded programming language. This feature makes Java Programming Language Fast and Interactive.

High Performance:

Performance of Java is very good. The main reason for the speed of Java is byte code. The architecture of Java is designed in such a way that overhead of its run time is very low.

Portable:

Java is a Portable language because java and compiler were written in ANSI.

Robust:

Robust is an attempt where the Java program is run, there are no errors or crashes in it.

Java “Hello World!” Program

Input:

 

public class HelloWorld {

    public static void main( String[] args ) {

        System.out.println( "Hello World!" );

        System.exit( 0 ); //success

    }

}

Output:

Hello World!

LEAVE A REPLY

Please enter your comment!
Please enter your name here