One of the Most popular programming language in USA

java-mini-logo-500x500

Although there are many  programming languages but in USA most popular one is JAVA. We can use this language even if we have little knowledge of C/C++ . The Syntax of JAVA is similar to C/C++. The OOPs concepts will definitely helps the beginners to  start their carrier  in the JAVA Program.

Actually , How is JAVA invented ? This is a very interesting story. This was actually invented by James Ghosoing and Team in 1995. They are the main pillar for having an idea how to make a use of C/C++ concept and do things more easily  using the concept of OOPs.

Features of JAVA:

  1. Simple :  –There are various features that makes the java as a simple language because Java is easy to learn  and developed by taking the best features from other languages mainly like C and C++. It is very easy to learn Java who have knowledge of object oriented programming concepts. Java provides the error free development environment for programmer  because it provide automatic memory management by development environment and eliminate pointers.
  2. Robust:-Robust simply means strong. Java uses strong memory management. There are lack of pointers that avoids security problem. There is automatic garbage collector (GC)in java. GC is a background process which starts when the programs execution starts and exists until the program  is running.Any variables OR object which is initialized but not being used in the program for some number of lines of code, it is going to be garbage collected.Hence, GC deallocates the memory and assign it to some other active variables.When that variables is used after memory deallocation, the GC again takes care of reallocation.Any variables which is assigned to 0 OR any object which is assigned to null is eligible for getting garbage collected.The behavior of GC is unpredictable.
  3. Strong Exception Handling:-Bytecodes are  highly optimized . Due to  JVM it will run and complied and run much faster .
  4. Platform Independent:-Java provides the facility to “Write once -Run any where”(Known as platform independent). Not even a single language is idle to this feature but java is more closer to this feature. Java code can be run on multiple platforms e.g.Windows,Linux,Sun Solaris,Mac/OS etc. Java code is compiled by the compiler and converted into bytecode.Distributed
  5. Distributed:-The widely used protocols like HTTP and FTP are developed in java. Internet programmers can call functions on these protocols and can get access the files from any remote machine on the internet rather than writing codes on their local system.
  6. Multi-threaded:-A thread is like a separate program, executing concurrently. We can write Java programs that deal with many tasks at once by defining multiple threads. The main advantage of multi-threading is that it shares the same memory. Threads are important for multi-media, Web applications etc.

 

Simple Java Program

Class Sample{

public static void main (String a[]){

System.out.println(“Hello  Java !!”);

}

}

Leave a Reply

Your email address will not be published. Required fields are marked *