Friday, 23 June 2017


Introduction to java programming

Java is a programming language created by James Gosling from Sun Microsystems (Sun) in 1991. The target of Java is to write a program once and then run this program on multiple operating systems. The first publicly available version of Java (Java 1.0) was released in 1995. Sun Microsystems was acquired by the Oracle Corporation in 2010. Oracle has now the steermanship for Java. In 2006 Sun started to make Java available under the GNU General Public License (GPL). Oracle continues this project called OpenJDK.
Over time new enhanced versions of Java have been released. The current version of Java is Java 1.8 which is also known as Java 8.
Java is defined by a specification and consists of a programming language, a compiler, core libraries and a runtime (Java virtual machine) The Java runtime allows software developers to write program code in other languages than the Java programming language which still runs on the Java virtual machine. The Java platform is usually associated with the Java virtual machineand the Java core libraries.
The Java language was designed with the following properties:

·         Platform independent:

 Java programs use the Java virtual machine as abstraction and do not access the operating system directly. This makes Java programs highly portable. A Java program (which is standard-compliant and follows certain rules) can run unmodified on all supported platforms, e.g., Windows or Linux.

·         Object-orientated programming language:

 Except the primitive data types, all elements in Java are objects.
·         Strongly-typed programming language: Java is strongly-typed, e.g., the types of the used variables must be pre-defined and conversion to other objects is relatively strict, e.g., must be done in most cases by the programmer.

·         Interpreted and compiled language:

 Java source code is transferred into the bytecode format which does not depend on the target platform. These bytecode instructions will be interpreted by the Java Virtual machine (JVM). The JVM contains a so called Hotspot-Compiler which translates performance critical bytecode instructions into native code instructions.

·         Automatic memory management:

 Java manages the memory allocation and de-allocation for creating new objects. The program does not have direct access to the memory. The so-called garbage collector automatically deletes objects to which no active pointer exists.


The Java syntax is similar to C++. Java is case-sensitive, e.g., variables called myValue andmyvalue are treated as different variables.


Example 1

Helo World Java Progrm
public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello World");
    }
}

Related Posts:

  • Introduction to Programming A program is a set of instructions that tell the computer to do various things; sometimes the instruction it has to perform depends on what happened when it performed a previous instruction. This section gives an … Read More
  • History of Java History of Java Java language developed by company Sun Microsystems and the creator is Jamesh Gosling. Story behind development of Java Sun Microsystems Started by a group of the students who are studing … Read More
  • ASCII character codes Table of 8-bit ASCII Character Codes HTTPS://EASYTOJAVALEARNER.BLOGSPOT.COM Email Print Characters in 8-bit ASCII. DecimalOctalHexBinaryValueDescription 0000000000000 0000NUL"null" character 0010010010000 0… Read More
  • Introduction to Programming - Errors Errors are unexpected conditions that are not part of the normal operation of a program. Examples of common errors are: Out of memory. Out of disk space. Invalid file name. Attempting to write to a read-only file. Att… Read More
  • Feature of java Features of Java Features of any programming language is nothing but the service or basic facilities provided by the language to the programmers. The java language provides the following features. Simple:- … Read More

0 comments:

Post a Comment

test

Manual Testing

Popular Posts