Java | Introduction

05 min read

Computer language development occurs to implement refinements and improvements in the art of programming. Java evolved from a project, developing a language for programming consumer electronic devices at sun microsystems, USA. The vision of this project was to develop smart consumer electronic devices that could all be certainly controlled and programmed from a hand-held remote control like device. It was realized that a platform-independent development environment was needed.

Java is a language for professional programmers. In addition to developing a platform independent language, Java has refined the object-oriented paradigm used by C++, added integrated support for multithreading and provided a library that simplified internet access. Java was to internet programming what c was to system programming.

Primary Motivation:

  1. As we all know, many different types of CPU's are used as controllers, in various consumer electronic devices. The trouble with C & C++ is that they are designed to be compiled for a specific target. Though it is possible to compile a C++ program just about any type of CPU, to do so require a full C++ compiler targeted for that CPU. the problem is that compilers are expensive and time-consuming to create. Towards finding an easier and more cost-effective solution which could be a portable, platform-independent language, to produce code that would run on a variety of CPUs under differing environments, paved way for the creation of java.
  2. At the time of development of Java, another factor was emerging the world wide web(WWW). Had the web not taken shape at about the same time that Java was being implemented, Java might have remained a useful language for programming consumer electronics. With the emergence of WWW, Java was propelled to the forefront of computer language design since the web, too, demanded portable programs.

How Java changed the internet?

Java applets are special kind of programs designed to be transmitted over the internet and automatically executed by a Java-compatible browser.If the user clicks a link that contains an applet, the applet will be automatically downloaded and run in the browser.

Applets are used to display data provided by the server, handle user input or provide simple functions such as a loan calculator, that execute locally, rather than on the server. They are dynamic, self-executing programs.

POST A NEW COMMENT
     
  • Input (stdin)

    Output (stdout)


    Input (stdin)

    Your Output (stdout)

    Expected Output

    Compiler Message

    Input (stdin)

    2    3

    Your Output (stdout)

    5

    Expected Output

    5

    Compiler Message

    5

    Error