Introduction To Java

Java is an object-oriented programming language. Java language was introduced by James Gosling at Sun Microsystems in the year 1991 and it was launched in the public in the year 1995. Before some years java was known as ‘Oak’. Java team Members are also known as  ‘Green Team’.

In the year 2010 Java was acquired by Oracle Company(An American multinational company).

The core features of Java are:

  1. Simple
  2. Robust
  3. Object Oriented
  4. Secured
  5. Interpreted
  6. Platform Independent
  7. Multithreaded
  8. High Performance
  9. Distributed
  • Java language is very simple to learn and the syntax is very easy to understand.
  1. Concepts of java are based on C and CPP Programming languages so if you know C and CPP languages then java is very easy for you to understand.
  2. Java is simple language because there were so many confusing topics in C and CPP but it has been removed now. Like Pointers, Operator Overloading etc.
  • Java language is robust(powerful, strong) because it has strong memory allocation, automatic garbage collection, and exception handling as compared to the other programming languages.

 

  • Java is Object Oriented means everything will be used with object and class.

OOPs Concepts:

  1. Object
  2. Class
  3. Inheritance
  4. Polymorphism
  5. Abstraction
  6. Encapsulation
  • Java is secured-  java is secured because JVM itself check the code at runtime.

.java file–> compiler –> .class file –> JVM —-> WINDOWS,MAC,LINUX
            (Bytecode) 

  •   Platform Independent – Java is platform independent means java source code can run on all the operating system(windows, mac, Linux).
  1. Hello World Program in Java – 
class Abc
{
public static void main(String args[])
{
System.out.println("hello world");
}
}

Output:
hello world

 

Leave a Reply