Muhammad Harits Syaifulloh

Monday, August 22, 2016

Basic concepts of Java programming

Basic Java programming concepts
Image Source :

Java is one of the programming languages that provides much convenience for junior or senior programmers. This tutorial will take you know more of the language through the discussion of the concept of model design and simple instructions.

What's Java?

Java is an object-oriented programming language developed by Sun Microsystems since 1991. The model was developed with language similar to C++ and Smalltalk, but designed to be easier to use and independent of platform, that can be run on many different types of operating systems and computer architecture. It is also designed for programming on the Internet so it's designed to be secure and portable.

Independent Platform
Independent Platform means that programs written in Java can be easily moved between different types of operating systems and various types of computer architectures. This aspect is very important to be able to achieve the purpose of Java as the programming language of the Internet in which a program will be run by different kinds of computers with different types of operating systems. These properties apply to the level of the source code and binary code from Java programs. In contrast to C and C++, all data types in Java have a size that is consistent across all types of platforms. Source code Java programs themselves do not need to change it at all if you want to re-mengkompile on the other platform. Results from the mengkompile Java source code is not machine code or processor specific instructions against the particular machine, but rather a form of bytecode in the form of a file with extension. class. You can direct the bytecode execution on each platform using the Java Virtual Machine (JVM) as against the bytecode interpreter.

The JVM itself is an application that runs on top of an operating system and translate the bytecode Java program and executes it, so the concept can be thought of as an interpreter. The process of pengeksekusian the Java program can be represented as in Figure 1. In this way, a compiled Java program can run on any platform, provided there is a JVM in there.

Compiler and interpreter for Java programs shaped the Java Development Kit (JDK) manufactured by Sun Microsystems. JDK can be downloaded free from the site Interpreter for Java program itself is often also called the Java Runtime or the Java Virtual Machine. The Java interpreter called Java Runtime Environment (JRE) can also be downloaded at the same site. To develop Java programs required JDK, while if you only want to run Java bytecode enough with the JRE instead. But to execute an applet (a Java bytecode as well) You usually do not need to download the JRE because Java-enabled browsers that already has its own JVM.

In addition to compilers and interpreters, Java language itself has a large enough library that can facilitate you in making an application quickly. This already includes the libraries for graphics, user interface design, cryptography, network, sound, database, and others.

Java is an object-oriented programming language. Object-oriented programming are palpable is a technique for organizing programs and can be done with almost any programming language. But Java has implemented its own variety of facilities so that a programmer can optimize object-oriented programming techniques. A little additional comparison with C and C++, Java has many inherit the concepts of object orientation from C++ but it eliminates the hassle of aspects in the language C++ without reducing its power. This makes it easy to novice programmers to learn Java but reduce the discretion of experienced programmers in tweaking a program. Behind the simplicities of Java, the vastness of his own Java library facilities make a programmer takes a brief not to be able to master the use of library-library.

No comments:

Post a Comment