What is Java and Why Use Java? | History and Applications - News4u95 - A Part of Your Everyday Life

Breaking

Tuesday, April 19, 2022

What is Java and Why Use Java? | History and Applications

What is Java and Why Use Java? | History and Applications

What is Java?

  • Java is a high-level programming language originally developed by Sun Microsystems and released in 1995.
  • Java is a popular programming language.
  • It is owned by Oracle, and more than 3 billion devices run Java.

 
What is Java and Why Use Java? | History and Applications
What is Java and Why Use Java? | History and Applications

History of Java

  • James Gosling initiated Java language project in June 1991 for use in one of his many set-top box projects. The language, initially called ‘Oak’ after an oak tree that stood outside Gosling's office, also went by the name ‘Green’ and ended up later being renamed as Java, from a list of random words.
  • Sun released the first public implementation as Java 1.0 in 1995. It promised Write Once, Run Anywhere (WORA), providing no-cost run-times on popular platforms.
  • On 13 November, 2006, Sun released much of Java as free and open source software under the terms of the GNU General Public License (GPL).
  • On 8 May, 2007, Sun finished the process, making all of Java's core code free and open-source, aside from a small portion of code to which Sun did not hold the copyright. 

 

Applications of Java Programming

  •     Mobile applications (specially Android apps)
  •     Desktop applications
  •     Web applications
  •     Web servers and application servers
  •     Games
  •     Database connection

 

Why Use Java Programming?

  •     Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)
  •     It is one of the most popular programming language in the world
  •     It is easy to learn and simple to use
  •     It is open-source and free
  •     It is secure, fast and powerful
  •     It has a huge community support (tens of millions of developers)
  •     Java is an object oriented language which gives a clear structure to programs and allows code to be reused, lowering development costs.
  •     As Java is close to C++ and C#, it makes it easy for programmers to switch to Java or vice versa.

 

Java First Program

  • In Java, every application begins with a class name, and that class must match the filename.
  • Let's create our first Java program, called First.java, which can be done in any text editor (like Notepad, eclipse).
  • The file should contain a "Hello World" message, which is written with the following code:

 

First.Java
First.Java

 

The output of program is:

 Hello World

 

Read More Articles: How To Install Java In Windows Step By Step

No comments:

Post a Comment

Related Articles