programming-info

java programming

Responsive Ads Here

Friday, May 15, 2020

Java Introduction? Java Basic

Introduction To Java Programming Language:   
                     
      
   Introduction To Java

In this page we will learn About java programming this is the complete explanation of  java programming language.

 JAVA was developed by Sun Micro-systems Inc in 1991, later acquired by Oracle Corporation. It was developed by James Gosling and Patrick Naughton. It is a simple programming language.  Writing, compiling and debugging a program is easy in java.  It helps to create modular programs and reusable code.




Main Features of JAVA programming language:

1. Java is a platform independent language:

Compiler (javac) converts source code (.java file) to the byte code(.class file). As mentioned above, JVM executes the bytecode produced by compiler. This byte code can run on any platform such as Windows, Linux, Mac OS etc. Which means a program that is compiled on windows can run on Linux and vice-versa. Each operating system has different JVM, however the output they produce after execution of bytecode is same across all operating systems. That is why we call java as platform independent language.


2. Java is an Object Oriented language:

Object oriented programming is a way of organizing programs as collection of objects, each of which represents an instance of a class.

4 main concepts of Object Oriented programming are:

3. Simple

Java is considered as one of simple language because it does not have complex features like Operator overloading, Multiple inheritance, pointers and Explicit memory allocation.

4. Robust Language

Robust means reliable. Java programming language is developed in a way that puts a lot of emphasis on early checking for possible errors, that’s why java compiler is able to detect errors that are not easy to detect in other programming languages. The main features of java that makes it robust are garbage collection, Exception Handling and memory allocation.

5. Secure

Java is a strong secure programming language, We don’t have pointers and we cannot access out of bound arrays  if you try to do in java. That’s why several security flaws like stack corruption or buffer overflow is impossible to exploit in Java.

6. Multi-threading

Java supports multi-threading. Multi-threading is a Java feature that allows concurrent execution of two or more parts of a program for maximum utilization of CPU.

7. Portable

As we discussed above, java code that is written on one machine can run on another machine. The platform independent byte code can be carried to any platform for execution that makes java code portable.

                                    
                                                                                                                   
                                                     







No comments:

Post a Comment