IDENTIFYING THE FEATURES OF JAVA

IDENTIFYING THE FEATURES OF JAVA
Java provides power features that make it popular and widely used programming language. Some of these features are:

  • Simple: When an object of a class is created, memory needs to be allocated. Later on, when the object is no longer required, the allocated memory of the object should be released. In java, memory allocation and deallocation automatically. The process of allocation and deallocation of memory is called garbage collection.

POINT:
One of the major problem areas in most of object-oriented languages, such as C++, is to handle memory allocation. Programmers need to handle memory in the program explicitly for optimum utilization. To handle memory allocation, they use pointers that enable a program to refer to a memory location of the computer. However, java does not support pointers and consist of the built-in functionality to manage memory.

  • Multithreaded: Java provides the concept of multithreading and allows a program to simultaneously execute multiple tasks by using threads. A thread is the smallest unit of execution in a Java program.
  • Platform Independence: In java, when you compile an error-free code, the compiler converts the program to a platform independent code, known as the byte code. Thereafter, the Java Virtual Machine (JVM) interprets this bytecode into the machine code that that can be run on that machine. Converting a Java program into bytecode makes a Java program makes platform independent because any computer installed with the JVM can interpret and run the bytecode.
POINT:
Each platform needs to have its own JVM to interpret and run bytecode for that platform.

  • Object-oriented: Java is an Object-oriented language and incorporates the various characteristics of an object-oriented language, such as inheritance and polymorphism. In java, the entire program code must be encapsulated inside a class. Even a most basic program in java must be written within a class. Futhermose, Java uses object to refer to real world entities, such as a game or game player.
  • Portable: Portability means to the ability of a program to run on any platform without any change in the source code of the program file. The programs developed on the computer can run on the another computer , which might have the different operating system. Java enables the creation of cross-platform programs by converting the programs into Java bytecode.
  • Secure: Java has built-in security features that ensures that a Java program gains access to only those resources of a computer that are essential for its execution. This ensures that a Java program executing on a particular machine does not harm it.
  • Distributed: Java can be used for the development of those application that can be distributed on multiple machines in a network, such as the internet. These applications can be used by multiple users from multiple machines in a network. For this purpose, Java supports the various Internet protocols, such as Transmission Control Protocol and Internet Protocol (TCP/IP) and Hypertext Transfer Protocol (HTTP).
  • Robust: Java provides various features, such as memory management and exception handling, which make it robust programming language. These features ensures that the Java applications run securely and effectively on a machine and do not crash a machine if minor errors are encountered.

Comments

Popular posts from this blog

JAVA ARCHITECTURE

Introduction Of JAVA

OOPs Concepts