What are the Characteristics of the Java Language?
What are the Characteristics of the Java Language?
Java is a popular and powerful programming language. In this post, we will briefly discuss some of the main characteristics of Java language.
Object-oriented
Java is an object-oriented language. Therefore, in Java, everything is an object. The only exceptions are the primitive data types. In OOP, we deal with objects which mimic the real physical objects. Also, objects are identified by their state, behavior, and identity.
Platform Independent
Most noteworthy, characteristic of Java language is Platform Independence. Java programs are portable across multiple operating systems. Hence, java program can run on various operating systems like Windows , Linux etc without any modifications as shown below. “Write once, run anywhere” .
Complied & Interpreted
Another important characteristic is that Java is a compiled & interpreted language: Java program is first compiled into bytecode. Bytecode can run on various target platforms. The bytecode is interpreted by the JVM.
Memory management
Java memory management is automatic. The programmer does not need to worry about the allocation and de-allocation of memory for objects. The garbage collector automatically takes care of deleting objects.
In addition, Java is a strongly typed language. The types of variables in Java need to be pre-defined and the conversion of objects is strict. Java is multi-threaded. Multi-threading enables programs to have more than one executions paths that execute concurrently. It’s easy in Java to create threads for concurrent execution.