if the subroutine only represents a task, the object is a combination of data (in the form of instance variables - or "instance variables") and some assignment or called "behavior" of these data sets (in the form of an instance method - or "instance method"). Therefore, the object is a new structure that can handle the more complicated the complexity of a program
This section covers the manufacture and use of objects in the Java language. It will also discuss the core of object-oriented programming, namely: inheritance and poly morfisme (changes form).
JAVA is one oriented computer programming language objects, created by a team at Sun Microsystems, UNIX workstation company is quite famous. Java was created based on C + + language, with the goal of "platform independent" (can be run on various types of hardware without recompilation), with the slogan "Write Once Run Anywhere" (Wora). Compared with the language C + + then Java is essentially simpler, and using a pure object.
As an introduction to the Java application development team created the HotJava, an application written in Java. HotJava is the application of "Web-Browser " which is capable of running Java programs called "applets" on the webpage. The emergence of Java has been stimulating the emergence of the dynamics in the Web world, not static anymore, and can provide interactive services. Today all the Web-Browser has to support JAVA applications and even the emergence of Java has triggered the emergence of new things such as JavaScript, Visual J + +, Active-X etc., which try to emulate the power of Java in the Web world.
Although Java applications are generally designed for the Web, but in essence Java is the language "general purpose"that can be used to write programs in general as in the language C and C + +.
JAVA language does not appear suddenly, or because the discovery was accidental. JAVA origins began in 1991 when Sun Microsystems was doing research experiment in electronic products. James Gosling (the head of the research project) along with Patrick Naughton was assigned to design software that is independent, not dependent on the type of hardware to be used in various electronic equipment. James Gosling and then use the language C + + but it turns out he was facing many difficulties, and therefore created a new language based on C + + but with some improvements. This language was then called Oak, and is used to create intelligent software for electronic equipment made in Sun Microsystems. In 1994 when the Web became popular, the Oak language name later changed to JAVA (one reason, because it turns out the name Oak was first used for something else, then the name JAVA seems no one has used only used for names of hot coffee, and according to Gosling name is quite "cool", Gosling was inspired to use the name Java while drinking coffee). JAVA is then used to create a browser that is named WebRunner, after successfully HotJava browser is then called with the symbol hot cup of coffee.
Year 1995 is the year's most important for the Java language. Java and HotJava then published on the Web, Alpha version released in early 1995. JAVA was originally reserved only for SPARC Solaris, and is also implemented on Windows NT, and in the summer of 1995 a new in-implementation for Windows 95 and Linux. JAVA version of Beta 1 was announced in autumn 1995, then followed with a version of Beta 2 in December, at the same time MicroSoft and IBM expressed their support for Java technology.
On January 23, 1996, Java 1.0 was officially announced and made available on the Web for download, then one of the Netscape 2.0 browser and JAVA JAVASCRIPT famous adopted. JAVA development does not stop there, a variety of related technologies have now been introduced, such as J2EE (Java 2 Enterprise Edition), JavaBean, Java Server Page (JSP), and JME (Java Mobile Edition).
One of the capabilities of the Java language is to use the applet on a Web page for a form of interaction with website visitors, such as appears in one of the following Web page where the applet is used to study the history of Egypt.
According to the definition provided by Sun Microsystems, Java is a simple programming language, object-oriented, distributed, interpreted, robust, secure, architecture neutral, portable, high-performance, multithreaded, and dynamic.
Java language is simple: the design of the Java language dibust such a way that can be quickly identified and understood by the first programmer because it is similar in C / C + + and the second is simpler than the C / C + + in some ways, because things are difficult in C / C + + was removed in Java, for example the use of pointers.
Java language is simple: the design of the Java language is such that it can quickly be identified and understood by the first programmer because it is similar in C / C + + and the second is simpler than the C / C + + in some ways, because things are difficult in C / C + + was removed in Java, for example the use of pointers.
Java is an object-oriented language: the concept of objects applied to the manufacture of Java programs, even Java uses the concept of these objects are genuine, so it is not possible for a man to make Java programs without defining the class and use the object.
Java is a distributed language: Java language is designed in such a way that supports the creation of applications in computer networking. Java provides several classes-objects to support network applications compiled in the package java.net.
Java is a robust language: Java design is made, thereby reducing the possibility of the program becomes frozen (freeze) when run, the possibility of error is minimized, for example by applying the strong-typed so that the program can avoid the error because the wrong data type. Java memory model apply also to prevent the corrupted memory and overwrited, for example by removing the use of pointers.
Java is a secure language: Java automatically apply security to the application, thereby reducing the possibility of attacks from the network user.
Java is architecture neutral language: Java programs that have been compiled to run on various machines and does not depend on a single computer architecture course.
Java is a portable language: Java programs very easily moved from one machine to another without the re-compilation, because in fact when at-compile the Java program converted into a bytecode format that is received by all machines, then on each machine is available Java run-time-or Java-virtual-machine (JVM) that can run the bytecode.
Java is a language of high-performance: basically compiled C programs run much faster than Java, because the result of compiling C is the machine language of the computer used to compile, but not necessarily the result of this compilation can run on different computer architectures . Java programs are compiled into bytecode that can walk in different machines, but when run this bytecode to be interpreted by the JVM into the appropriate machine language, so much slower than C, but because Java can be used on computer networks that reality was not too fast because the barrier channel communication then the Java program still feels pretty fast.
Java is a multithreaded language: Java is designed to handle a variety of street applications simultaneously, such as playing a song, while doing the download, and users are doing scrolling on the window of his observed. This incident called multithreaded.
Java is a dynamic language: the Java language designed to adapt to its environment that can change quickly, Java can call the various class-object in times of need, despite having to go through the network, besides that it has a representation of the Java run-time so that the object being used by an application to be examined comes from a class through which run-time information.
Prior to the Java language was introduced as a programming language in general programming languages such as Pascal, C and C + + using a compiler to translate the program into assembly language or machine language. BASIC language is known as a language interpreter where the program is compiled but not directly translated by the interpreter on the line when the program is typed into the computer memory.
Java language is essentially using the second technique, the compiler and interpreter. When a Java program that is being edited, will be recorded the name of the file must have the extension. java. The file is then in-source compilation with javac compiler into bytecode files, not the assembly and not the machine language. The results of this compilation of bytecodes are stored in files with extensions. class, this file can not be executed (execution) because no machine or assembly language.
Needed an interpreter to run. class file compilation, interpreters can be contained in the Web-browser that has been to adopt Java to run Java applet, or can be in the form of interpreter java.exe to run java applications.
Java interpreter commonly referred to as a JVM (Java Virtual Machine) provided by Sun Microsystems for each platform, with this technique, the Java program can Wora slogan, because the in-distribution program is the result of compilation. class that looks the same on every platform, then later after. This class will run, then only then is interpret by each existing JVM on every platform.
Monday, March 21, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment