Programming References and tutorials for Developers.

Features of Java Program

By The Saint on Tuesday, January 20, 2009

Filed Under:

Features of Java Program


The Java Virtual Machine
Java Virtual Machine is a piece software and data structures that is implemented to emulate software and scripts on a real machine. The Java Virtual Machine provides the hardware a platform to which you compile all Java code. By doing this it enables all programs written in Java program as a platform-independent because it compiles the code to a generic machine known as the JVM.

bytecode
A Java generated source code after compilation is known as bytecode. Bytecode is a platform-independent, so any computer with a java interpreter can compile the program even what type of machine you are using.

Garbage Collection
Common feature of a programming language is to allocate memory address every time user execution the program. However, after using the allocated memory, deallocating unused block of memory could be the problem in some programming languages. Deallocation of memory is done manually like in c and c++ programmers has the responsibility to deallocate blocks of memory, but there are some instance that programmers forget to deallocate memory and can cause to memory leaks.

In Java freeing block of memory is not a problem to programmers but instead Java program itself has the capability to free unused memories and that is the task preformed by the Garbage Collection Thread.

0 comments for this post