preview

Essay on Java

Good Essays
Open Document

Java is one of many high-level programming languages that use abstraction (reducing and factoring details) to create software for computers and many other electronic devices. Compared to low-level programming languages, high-level programming languages use a mixture of natural language (any language used by humans) and typical computer terms to create an easier to understand and simpler form of programming. Figures 1 and 2 show the difference in writing a simple program called “Hello World” in Assembly (a low-level programming language) and in Java.

Like human languages, programming languages have different levels of writing difficulty; some are easy to write, while others require extensive computer knowledge to understand. In …show more content…

There are three parts in a Java program that are essential for a program to run. In every Java application, the code always starts with a class (where instructions are written) definition. In the class there is a main method that passes specific requirement into the program. Finally, other methods other than a main that act as functions are written to do specific tasks that the program requires. Three parts of Java
As mentioned earlier Java consists of many different parts, but, there are three that are usually the most important in Java. They are; classes, methods and objects. Classes are a blue print to creating objects that are used in the program. Methods are Java statements that must be in a class, for a Java program to work, it has to have at least the “main ()” method. Finally, objects store current states and also show their behavior when called through a method.

How a Java program works
Java is usually written in an Independent Development Environments (IDEs). IDEs are programs that have all the resources of writing a program in one place. Unlike C++, a language that is similar to Java, programs written in Java can be used in any operating system that can run Java Virtual Machine. This makes Java one of the most versatile and widely used languages for commercial software programs and other fields. The process of writing a Java

Get Access