Java

SofĂ­a Ilse

Introduction

Java is a programming language that is object-oriented, specifically designed to have as few implementation dependencies as possible.

History

  • James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991
  • Gosling designed Java with a C/C++-style syntax that system and application programmers would find familiar.
  • Sun Microsystems released the first public implementation as Java 1.0 in 1995
  • The Java 1.0 compiler was re-written in Java by Arthur van Hoff to comply strictly with the Java 1.0 language specification.
  • In 1997, Sun Microsystems approached the ISO/IEC JTC 1 standards body and later the Ecma International to formalize Java, but it soon withdrew from the process
  • In 2006, Sun released much of its Java virtual machine (JVM) as free and open-source software, under the terms of the GNU General Public License.

Syntax of Java

The syntax of Java is largely influenced by C++.

Java was built almost exclusively as an object-oriented language.

All code is written inside classes, and every data item is an object, with the exception of the primitive data types.

Java does not support operator overloading[48] or multiple inheritance for classes

First open your IDE and create a packpage for your program

Then creates a new class main in the carpet of classes in the packpage

Second write the code in the main.

Finally executes your code.