Early versions ofEarly versions of Java in the year 1996 is already a version of the release so-called Java Version 1.0. This version of the Java standard package includes a number that continues to be developed early in the next version:
java.lang: Appropriation basic elements of the class.
java.io: Appropriation input and output classes, including the use of the file.
java.util: Appropriation complementary class of data structures such as class and class calendar class.
java.net: The Allocation class TCP / IP, allowing it to communicate with other computers using a TCP / IP.
java.awt: The base class for applications with a user interface (GUI)
java.applet: The base class application interface to be implemented on a web browser.
Excess
Multiplatform. The main advantages of Java is able to run on multiple platforms / operating system computer, in accordance with the principle of write once, run anywhere. With these advantages programmers simply write a Java program and compiled (converted, from which to understand human language into machine language / bytecode) once and then the results can be run on multiple platforms without changes. These advantages allow a java-based program is done on the Linux operating system but runs well on Microsoft Windows. Supported platforms to date is Microsoft Windows, Linux, Mac OS and Sun Solaris. Penyebanya are each operating system uses its own program (which can be downloaded from Java) to meninterpretasikan bytecode.
OOP (Object Oriented Programming - Object Oriented Programmers)
The Complete Class Libraries, Java is famous for its completeness of the library / library (a collection of programs that are included in the Java programming) is very easy in use by the programmers to build applications. Completeness of these libraries coupled with the existence of a large community of Java that continuously create new libraries to cover all application development needs.
C + + style, has a syntax such as C + + programming language to attract a lot of C + + programmers moving to Java. Currently Java is a lot of users, most of the C + + programmers moving to Java. Universities in the United States also began to migrate to teach Java to the new students because it is more easily understood by students and can be useful also for those who are not majoring in computer.
Automatic garbage collection, has the facility of setting memory usage so that the programmer does not need to perform direct memory settings (as in C + + is widely used).Shortage
Write once, run anywhere - There are still some things that are not compatible between the platform with other platforms. For J2SE, for example SWT-AWT bridge which until now does not work on Mac OS X.
Didekompilasi easy. Decompilation is the reverse of the code so it becomes the source code. This is possible because the code is Java bytecode so that saves a lot of the attributes of high-level languages, such as the names of classes, methods, and data types. The same is true of Microsoft. NET Platform. Thus, the algorithm used the program would be more difficult to hide and easily hijacked / direverse-engineer.
A lot of memory usage. The use of memory for Java-based program is much larger than the previous generation of high-level language like C / C + + and Pascal (more specifically, the Delphi and Object Pascal). This is usually not a problem for those who use the latest technology (due to trend more and more expensive on-board memory), but a problem for those who still have to stick with machines older than 4 years.Examples of Simple Program In Java Code Examples Hello world program written using the Java programming language is as follows:/ / Outputs "Hello, world!" and then exitspublic class HelloWorld {
public static void main (String args []) {
System.out.println ("Hello, world!");
}}