Saturday, August 24, 2019

Advatages of using java programing language Essay

Advatages of using java programing language - Essay Example As such, several computer program languages were developed around that time. Although Java is similar to C++, it has some advantages over C++, such as simplicity. Java can create large applications for one or more computers and can also be used to create applets, which are useful when it comes to creating Web pages. In fact, Java has "exceptional opportunities when it comes to the Web development in terms of simplicity of implementation and speed of execution of the final product" (Masovic et al., 2012). Java is also free and easy to download from the Internet. It would be very difficult to use Java codes that had great effects on computers (Harold, 1997). The advantages of using Java are that it is easy to learn, object-oriented and platform-oriented. The first Java design was meant to be easy to use (Masovic et al., 2012). C++ was developed before Java and as such was used as a guide for Java. Although C++ is very similar to Java, improvements were made in the original design. Chan ges in two components, memory allocation and garbage collection, had contributed greatly to present the simplicity of Java design so that users did not need to worry about the memory. Other characteristics of Java that led to its simplicity were cross-platform compatibility, no cost, portability, and easy to learn (Pravica, 1999). Also, Java is easy to compile and write compared to other programming languages (McKell, 1998). Programmers find that writing Java codes is much easier than other computer languages. For example, many programming experts had realized that shipping C code has, on average, one bug per 55 lines of code (Harold, 1997). Java’s grammar is simple but very similar to C+ and C++. This is a great advantage when networking occurs between several computers. It means that different and distinct programs can run at the same time from different computers in order to carry out a task. (Choudhari, 2012) The designers included automatic memory allocation in Java, whi le in C++ the programmer must allocate the size of the memory. The programmer must also collect the garbage, but in Java the garbage is collected automatically. Java programs can be written once and then run anywhere through the use of an interface (McKell, 1998). The interface is a one class inheritance scheme instead of a multiple inheritance programs that represent the object-oriented program. Object-orientation refers to the ability of a program to simulate real life. The garbage or deleted icons are represented by an icon that mirrors real life usage; for financial usage a mortgage can be considered as an object. Java was intentionally designed as an object-oriented program in order to avoid problems that often become complex when solving inheritance issues in C++. Furthermore, Java allows creation modular programs and reusable code for frequent usage (McKell, 1998). Applets are small modular language applications that can be constructed from Java and are mini-applications that allow a viewer to see animations on a Web page. Interactions between a user and a Web page, such as making short calculations or other types of simple tasks, can be accomplished with Applets. JavaBeans is another component that makes programming easier. JavaBeans can string reusable components together with only a minimum amount of written code (Choudhari, 2012). Java is virtually integrated on almost every operating system and browser because it has platform independence. The Java Virtual Machine (JVM) executes the code of the platform. The JVM is the component that "enforces security policies so that boundaries are in place for what Java can and cannot do; Java runs on all

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.