Java as one of the promising new programming language a lot easier for junior and senior programmers. This tutorial will take you see more of this language through discussion of the concept of design models and simple instructions to use it.
What Is Java?
Java is object-oriented programming language developed by Sun Microsystems since 1991. This language was developed with a similar model in C + + and Smalltalk, but designed for easier use and platform independent, which can run on different types of operating systems and computer architecture. The language is also designed for programming on the Internet that is designed to be secure and portable.
Platform Independent
Platform independent means that programs written in Java can easily be moved between different types of operating systems and various types of computer architectures. This aspect is very important to achieve the purpose programming language Java as the Internet in which a program will be run by different types of computers with different types of operating systems. This property applies to the level of source code and binary code from Java programs. In contrast to the language C and C + +, all types of data in the Java language has a consistent size in all types of platforms. Java program source code itself does not need to be changed at all if you want to compile on other platforms again. The results of the compile Java source code is not machine code or processor instructions that are specific to a particular machine, but rather a form of bytecodes berekstensi file. Class. Bytecode you can direct the execution of each platform using the Java Virtual Machine (JVM) as an interpreter for the bytecode.
JVM itself is an application that runs on an operating system and interprets Java bytecode and execute programs, so the concept can be regarded as an interpreter. Java program execution process can be depicted as in Figure 1. In this way, a Java program that has been compiled to be run on any platform, provided there is JVM.
Compilers and interpreters for the form of Java programs Java Development Kit (JDK), produced by Sun Microsystems. JDK can be downloaded for free from the java.sun.com site. Interpreter for the Java program itself is often also called the Java Runtime or Java Virtual Machine. Java interpreter, without the compiler, called the Java Runtime Environment (JRE) can be downloaded also at the same site. To develop the required JDK Java programs, whereas if you only want to run Java bytecode with the JRE enough alone. But to execute the applet (a Java bytecode as well) you usually do not need to download the JRE for the browser-enabled Java has a JVM itself.
Library
In addition to compilers and interpreters, the Java language itself has a large library that can facilitate you in making an application quickly. This library is included for graphics, user interface design, cryptography, network, sound, databases, and others.
OO
Java is object-oriented programming language. Object-oriented programming clearly is a technique for organizing the program and can be done with almost any programming language. But Java itself has implemented various facilities so that a programmer can optimize object-oriented programming techniques.
Little additional comparisons with the language C and C + +, Java inherited many object-oriented concepts of C + +, but by eliminating the complexity aspects in C + +, without reducing its strength. It is easier for beginner programmers to learn Java programming, but reduces flexibility experienced in tinkering with a program. Behind the convenience offered by Java, the extent of the Java library facility itself makes a programmer who does not need a short time to master the use of these libraries.
What Is Java?
Java is object-oriented programming language developed by Sun Microsystems since 1991. This language was developed with a similar model in C + + and Smalltalk, but designed for easier use and platform independent, which can run on different types of operating systems and computer architecture. The language is also designed for programming on the Internet that is designed to be secure and portable.
Platform Independent
Platform independent means that programs written in Java can easily be moved between different types of operating systems and various types of computer architectures. This aspect is very important to achieve the purpose programming language Java as the Internet in which a program will be run by different types of computers with different types of operating systems. This property applies to the level of source code and binary code from Java programs. In contrast to the language C and C + +, all types of data in the Java language has a consistent size in all types of platforms. Java program source code itself does not need to be changed at all if you want to compile on other platforms again. The results of the compile Java source code is not machine code or processor instructions that are specific to a particular machine, but rather a form of bytecodes berekstensi file. Class. Bytecode you can direct the execution of each platform using the Java Virtual Machine (JVM) as an interpreter for the bytecode.
JVM itself is an application that runs on an operating system and interprets Java bytecode and execute programs, so the concept can be regarded as an interpreter. Java program execution process can be depicted as in Figure 1. In this way, a Java program that has been compiled to be run on any platform, provided there is JVM.
Compilers and interpreters for the form of Java programs Java Development Kit (JDK), produced by Sun Microsystems. JDK can be downloaded for free from the java.sun.com site. Interpreter for the Java program itself is often also called the Java Runtime or Java Virtual Machine. Java interpreter, without the compiler, called the Java Runtime Environment (JRE) can be downloaded also at the same site. To develop the required JDK Java programs, whereas if you only want to run Java bytecode with the JRE enough alone. But to execute the applet (a Java bytecode as well) you usually do not need to download the JRE for the browser-enabled Java has a JVM itself.
Library
In addition to compilers and interpreters, the Java language itself has a large library that can facilitate you in making an application quickly. This library is included for graphics, user interface design, cryptography, network, sound, databases, and others.
OO
Java is object-oriented programming language. Object-oriented programming clearly is a technique for organizing the program and can be done with almost any programming language. But Java itself has implemented various facilities so that a programmer can optimize object-oriented programming techniques.
Little additional comparisons with the language C and C + +, Java inherited many object-oriented concepts of C + +, but by eliminating the complexity aspects in C + +, without reducing its strength. It is easier for beginner programmers to learn Java programming, but reduces flexibility experienced in tinkering with a program. Behind the convenience offered by Java, the extent of the Java library facility itself makes a programmer who does not need a short time to master the use of these libraries.
0 Komentar untuk "Programming with Java"