Basic Java Programming Tutorial For Beginners

What is Java?

Java is a programming language that can be run on various computers including mobile phones. This language was originally created by James Gosling when he was still at Sun Microsystems and is currently part of Oracle and was released in 1995. This language adopts a lot of the syntax found in C and C ++ but with a simpler object model syntax and support for lower-level routines. minimal. Java-based applications are generally compiled into p-code (bytecode) and can be run on various Java Virtual Machines (JVM). Java is a programming language that is general / non-specific (general purpose), and is specifically designed to take advantage of the minimum possible implementation dependencies. Due to its functionality that allows Java applications to run on several different operating system platforms, java is also known by the slogan, “Write once, run anywhere”. Currently, Java is the most popular programming language used, and is widely used in the development of various types of application software or applications

History of development

The Java programming language was born from The Green Project, which ran for 18 months, from the early 1991 to the summer of 1992. The project did not yet use a version called Oak. The project was driven by Patrick Naughton, Mike Sheridan, and James Gosling, along with nine other programmers from Sun Microsystems. One of the results of this project was the Duke mascot created by Joe Palrang.

The project meeting took place at a Sand Hill Road office building in Menlo Park. Around the summer of 1992 this project was closed by producing the first Java Oak program, which was intended to control a device with touch screen technology (touch screen), such as on today’s PDAs. This new technology was named “* 7” (Seven Star).

After the Star Seven era was over, a cable TV subsidiary was interested plus a few people from The Green Project. They concentrate their activities in an office space at 100 Hamilton Avenue, Palo Alto.

The new company was advancing: the number of employees increased in a short time from 13 to 70 people. During this period of time, the use of the Internet as a medium was also established to bridge work and ideas between them. In the early 1990’s, the Internet Java How To Program Early Objects 10e PDF was still a pilot, used only by academics and the military.

They made the Mosaic browser the starting point for creating the first Java browser called Web Runner, inspired by the 1980s film, Blade Runner. During the development of the first release, Web Runner changed its name to Hot Java.

Around March 1995, Java source code version 1.0a2 was opened for the first time. Their success was followed by their first coverage in the San Jose Mercury News newspaper on May 23, 1995.

Unfortunately there was a split between them one day at 04.00 in a room at the Sheraton Palace hotel. Three of the main project leaders, Eric Schmidt and George Paolini of Sun Microsystems with Marc Andreessen, formed Netscape.

The name Oak, is taken from the oak tree that grows in front of the window in the office of “Mr. Java”, James Gosling. The name Oak was not used for the Java release version because another software was registered under the trademark, so it took its replacement name to “Java”. This name is taken from pure coffee that is ground directly from Gosling’s favorite bean (brewed coffee). It is said that this coffee comes from the island of Java. So the name of the Java programming language is none other than the word Java (English for Java is Java).


  • Multiplatform . The main advantage of Java is that it can be run on several computer platforms / operating systems, according to the principle of write once, run anywhere. With this advantage the programmer only needs to write a Java program and compile it (convert it from a human-understood language to machine language / bytecode) once and the results can be run on multiple platforms without any changes. This advantage allows a Java-based program to be run on top of the Linux operating system but run well on Microsoft Windows. The supported platforms to date are Microsoft Windows, Linux, Mac OS and Sun Solaris. This is because each operating system uses its own program (which can be downloaded from the Java website) to interpret the bytecode.
  • OOP (Object Oriented Programming – Object Oriented Programmer) , Java is a programming language with the concept of OOP. Where the program that is built is oriented towards the Object. Applications built with the OOP concept consist of related objects
  • Complete Class Library, Java is famous for its complete library / library (a collection of program programs included in Java programming) which is very easy for programmers to use to build their applications. The completeness of this library is coupled with the existence of a large Java community that continuously creates new libraries to cover all application development needs.
  • C ++ style, has a syntax like the C ++ programming language so that it has attracted many C ++ programmers to move to Java. Currently, there are many Java users, mostly C ++ programmers who have moved to Java. Universities in the United States are also starting to move to teach Java to new students because it is easier for students to understand and can also be useful for those who are not majoring in computers.
  • Automatic garbage collection , has a memory usage management facility so that programmers do not have to do memory management directly (as is the case in the widely used C ++ language).


  • Write once, run anywhere – There are still some things that are not compatible between one platform and another. For J2SE, for example the SWT-AWT bridge which until now does not work on Mac OS X.
  • Easy to decompile. Decompilation is the process of reversing the finished code into the source code. This is possible because Java code is a bytecode that stores many high-level language attributes, such as class names, methods, and data types. The same thing happened to the Microsoft .NET Platform. Thus, the algorithm used by the program will be more difficult to hide and easier to be hijacked / reverse-engineered.
  • Lots of memory usage . The memory usage for Java-based programs is much greater than for previous generation high-level languages ​​such as C / C ++ and Pascal (more specifically, Delphi and Object Pascal). Usually this is not a problem for those who use the latest technology (due to the trend of cheaper installed memory), but a problem for those who still have to struggle with computer machines over 4 years old.