Some of the characteristics we describe here are:-
- Simple- No language is simple, but Java is a bit easier than the popular object-oriented programming language C++, java java is not using concept of pointer and multiple inheritence like C++ and java also automatically allocates memory and collects garbage.
- Object Oriented- Except the primitive data types, all elements in Java are objects.
- Distributed- Distributed computing involves several computers working together on a network. Java is designed to make distributed computing easy. Since networking capability is inherently integrated into Java, writing network programs is like sending and receiving data to and from a file.
- Interpreted and compiled language- Java source code is transfered into byte-code which does not depend on the target platform. This byte-code will be interpreted by the Java Virtual machine (JVM). The JVM contains a so called Hotspot-Compiler which translates critical byte-code into native code.
- Java™ is portable (because is both compiled and interpreted)
- Java's Performance-Java’s performance is sometimes criticized. The execution of the bytecode is never as fast as it would be with a compiled language, such as C++. Because Java is interpreted, the bytecode is not directly executed by the system, but is run through the interpreter. However, its speed is more than adequate for most interactive applications, where the CPU is often idle, waiting for input or for data from other sources.
- Automatic memory management: Java manages the memory allocation and de-allocation for creating new objects. The program does not have direct access to the memory. The so-called garbage collector deletes automatically object to which no active pointer exists.
No comments:
Post a Comment