Minggu, 22 Juli 2012

The Development of Java


The development of Java

Early versions of
Early versions of Java in 1996 is already a version release so called Java Version 1.0. Java version includes a number of standard packages are being developed at the beginning of the next version:
~  java.io: Appropriation grade input and output, including the use of the file.
~  java.util: allotment supplementary classes as data structures class and classroom class calendar.
~  java.net: Appropriation grade TCP / IP, which allows to communicate with other computers using TCP / IP.
~ java.awt: The base class for applications with user interfaces (GUI)
~ java.applet: The base class interface applications to be implemented on a web browser.

Excess
~  Multiplatform. The major advantage of Java is that it can run on multiple platforms / systems computer operations, in accordance with the principle of write once, run anywhere. With these advantages programmers simply write a Java program and compiled (modified, from human understandable language into machine language / bytecode) once and the results can be run on multiple platforms without modification. This advantage allows a Java-based program is done on the Linux operating system but run well on Microsoft Windows. Platforms supported to date is Microsoft Windows, Linux, Mac OS, and Sun Solaris. The cause is any operating system uses its own program (which can be downloaded from Java) to interpret  bytecode.
~  OOP (Object Oriented Programming - Object Oriented Programmer)
~  The Complete Class Library, Java is famous for its completeness library / library (a collection of programs that are included in the Java programming) is very easy to use by the programmers to build applications. Completeness library coupled with the presence of a large Java community that continuously create new libraries to encompass the entire application development needs.
~ C + + style, has the syntax of programming languages ​​such as C + + so it attracts a lot of C + + programmers moving to Java. Currently Java users very much, mostly C + + programmers moving to Java. Universities in the United States also began to move with Java to teach new students because it is more easily understood by the students and can be useful also for those who are not majoring in computer.
~ automatic garbage collection, features memory usage settings so the programmer does not need to make arrangements memory directly (as in C + + is widely used).
Shortage
~ Write once, run anywhere - There are still some things that are not compatible between the platforms of the other platforms. For J2SE, for example SWT-AWT bridge which until now does not work on Mac OS X.
~  Easy in decompilation . Decompilation is the reverse of the code so a source code. This is possible because the code is so Java bytecode languages ​​with a lot of high-level attributes, such as the names of classes, methods, and data types. The same thing happened to Microsoft. NET Platform. Thus, the algorithm used the program would be more difficult to hide and easily hijacked / direverse-engineer.
~  Use a lot of memory. Memory usage for a Java-based program is much larger than the previous generation of high-level languages ​​such as C / C + + and Pascal (more specifically, and Object Delphi Pascal). Usually this is not a problem for those who use the latest technology (as trends increasingly cheap memory installed), but it becomes a problem for those who still have to stick with the old computer machine over 4 years.
Simple Example Program Code In Java
Hello world program examples are written using the Java programming language is as follows:
/ / Outputs "Hello, world!" and then exits
public class HelloWorld {
   public static void main (String args []) {
       System.out.println ("Hello, world!");
   }
}

Tidak ada komentar:

Posting Komentar