Sei sulla pagina 1di 6

JAVA IS SIMPLE Java was developed by taking the best points from other programming languages, primarily C and

C++. Java therefore utilises algorithms and methodologies that are already proven. Error prone tasks such as pointers and memory management have either been eliminated or are handled by the Java environment automatically rather than by the programmer. Since Java is primarily a derivative of C++ which most programmers are conversant with, it implies that Java has a familiar feel rendering it easy to use.

Java is not a fully object oriented language because it does not support multiple inheritance directly. But it does so by using the concept of interfaces. A language is said to be fully object oriented if it supports classes,objects,inheritance and polymorphism.For example C++ supports full fledged feature of inheritance and all the types of inheritances(single,multilevel,multiple,hierarch ical and multipath inheritances), and if we take the polymorphism C++ supports static binding and operator overloading which come under static polymorphism where as Java does not support operator overloading. We cannot say Java as an Object based language because it supports Inheritance and polymorphism to some extent. Where as in object based languages there are classes and objects but no inheritance and polymorphism.

Java is robust because it is highly supported language, meaning that unlike C you cannot crash your computer with a bad program. Also, another factor in its robustness is its portability across many Operating systems, with is supported by the Java Virtual Machine.

Java is portable because it does not compile machine level code, like most compliers, but instead makes bit level code. Because of this, to run a Java program all you need is an interpreter on your platform (be it a web browser, operating system, or cell phone) to run the code. Read more: http://wiki.answers.com/Q/Why_java_is_port able#ixzz1Zt3ka0pV

JDK or the Java Development Kit is a set of a Java compiler, a Java interpreter, developer tools, Java API libraries,

ava is inherently multi-threaded. A single Java program can have many different threads executing independently and continuously. Three Java applets on the same page can run together with each getting equal time from the CPU with very little extra effort on the part of the programmer. This makes Java very responsive to user input. It also helps to contribute to Java's robustness and provides a mechanism whereby the Java environment can ensure that a malicious applet doesn't steal all of the host's CPU cycles. Unfortunately multithreading is so tightly integrated with Java, that it makes Java rather difficult to port to architectures like Windows 3.1 or the PowerMac that don't natively support preemptive multi-threading. There is a cost associated with multi-threading. Multi-threading is to Java what pointer arithmetic is to C, that is, a source of devilishly hard to find bugs. Nonetheless, in simple programs it's possible to leave multi-threading alone and normally be OK.

Potrebbero piacerti anche