Sunday, December 24, 2017

What is JAVA ? Introduction Blog?

What is JAVA?

Java is a programming language which was originally developed by Sun Microsystems & initiated by James Gosling and got released in 1995 as a  core component of Sun Microsystems' Java platform.
The latest release of the Java Standard Edition is Java SE 8. By the popularity of Java and its advancement, multiple configurations were built to suit various types of its platforms. 

For example: 
  • J2EE for Enterprise Applications, J2ME for Mobile Applications. 
  • The new J2 versions were renamed as Java SE, Java EE, and Java ME respectively. 

History about JAVA

  • James Gosling originated Java language project in the month of June of year 1991 for his research/use in one of his many set top box projects. 
  • The language, primarily called as ‘OAK’, then it was also called as ‘Green’ and then ended up later being renamed as ‘JAVA’ from a list of random words. 
  • In 1995, Sun released the first public implementation as Java 1.0. They promised Write Once, Run Anywhere (WORA), providing no-cost run-times on popular platforms. 
  • In 2006, Sun released much of Java as open source and free software under the terms of the GNU General Public License (GPL). 

What are the features of JAVA?

  1. JAVA is an Object Oriented: Everything is an Object in Java. Java can be easily used extensively since it is based on the Object model. 
  2. JAVA is a Platform Independent: Unlike many other programming languages including C, C++. Generally, Java is compiled into platform independent byte code. This byte code is distributed over the internet and interpreted by the Java Virtual Machine (JVM) on whichever platform it is being run. 
  3. JAVA is a Simple: Java is so easy to learn. If you understand the basic concepts of Object oriented programming (OOPS) concepts of Java.
  4. JAVA is Interpreted: After interpterion java byte code is translated on the fly to its innate machine instructions and is not stored anywhere.
  5. JAVA is Robust: Java ensures to remove error prone scenarios by stressing primarily and strongly on compile time error checking and runtime checking. 
  6. JAVA is Portable: Java being an architecture-neutral and having no implementation dependent features of the specification makes Java portable.
  7. JAVA is Secure: Out of box Java's secure features enables to develop virus-free, error-free systems. 
  8. JAVA is a Architecture-neutral: While compiling java program, Java compiler generates an architecture-neutral object file format, which makes the compiled code to be executed on many processors, with the presence of Java runtime system. 
  9. JAVA is Multithreaded: By Java's multithreaded aspects it is possible to code programs that can perform multiple tasks simultaneously. This feature allows the JAVA developers to develop the interactive applications. 
  10. JAVA is Distributed: Java is designed for the distributed atmosphere across the internet. 
  11. JAVA having High Performance: By the use of Just-In-Time (JIT) compilers, Java ensures for high performance. 
  12. JAVA is Dynamic: Java program is so dynamic compared to other technologies like C or C++.  Java programs can hold huge and bulk amount of run-time information that can be used to verify the objects and resolve accesses on run-time. 

*************************************************************************

Basic syntax/program of JAVA


File name: MyFirstJavaProgram.java



public class MyFirstJavaProgram 

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



*************************************************************************
Output: Hello World
*************************************************************************

Watch the below video for more details on the above program:



*************************************************************************