Java

...of computer; it just works about everywhere--from the smallest devices to supercomputers. Java technology is widely regarded as revolutionary, because it was designed to let computers and devices communicate with one another much more easily than ever before. Some key points of Java are: Simplicity Java has been designed to be much easier to write bug free code. About half of the bugs in C and C++ programs are related to memory allocation and deallocation. Therefore the second important addition Java makes to providing bug-free code is automatic memory allocation and deallocation. The C library memory allocation functions malloc ( ) and free ( ) are gone as are C ++’s destructors. Java does not include or permit: Pointers, a goto statement, a preprocessor, multiple-inheritance, struck and union types, and operator overloading. Object-Oriented In object-oriented programs data is represented by objects. Objects have two sections, fields (instance variables) and methods. Fields tell you what an object is. Methods tell you what an object does. These fields and methods are closely tied to the object's real world characteristics and behavior. When a program is run messages are passed back and forth between objects. When an object receives a message it responds accordingly as defined by its methods. Object oriented programming have a number of advantages including: • Simpler, easier to read programs • More efficient reuse of code • Faster time to market • More robust, error-free code Unlike C++, Java was designed to be Object-oriented from the ground up. It provides a consistent and well document library of classes. Though there are still fundamental data types, such as character numeric, and Boolean, most items in a Java program are objects. Distributed Java is designed as a distributed language. What this means is that it provides standard support for network connectivity. While in C and C++ it is possible to write distributed programs, you need to use the API provided by the operating system to do it. With Java, a standard set of classes is provided for this. Interpreted Java programs are compiled into a format called Byte Code, rather than native machine code (as C and C++ are). This Byte Code is interpreted and executed by the Java Virtual Machine installed on the target computer. This means...

Essay Information


Words: 748
Pages: 3
Rating: None

All Papers Are For Research And Reference Purposes Only. You must cite our web site as your source.