Sunday, June 12, 2011

java

Java is a groundbreaking computing platform released by Sun Microsystems in 1995. It enables the same application to run on lots of different computers and devices. Java accomplishes this because the source code is translated to byte code (an intermediate code) and then interpreted by the Java Virtual Machine. Therefore, any computer with the JVM can execute a Java program. The process Java uses to execute programs is called a hybrid implementation system. It is called a hybrid because it is a compromise between compilers and pure interpreters implementation systems. This allows faster interpretation, but Java is Another reason to choose Java is that it allows you to represent your problems as data type using libraries or creating your own. All languages are abstractions of something. For example, C and C++ are abstractions of assembly language, which means you must work in terms of the computer hardware. This is a downside because all computers are different and your code will not be always portable.

Inheritance allows the programmer to extend the rules of a class to another class with additional member functions. Java accomplishes this with the “extends” keyword. Unlike C++, a derived class in Java can only extend from one different class, multiple inheritance is not allowed.

No comments:

Post a Comment