In this era of technology development, computer have played big role in human life. Rapid technological development have succesfully created computers with incredible sophistication and It produced comercially. Development of hardwares was followed by the development of softwares inside. If in the past, we only knew the common programming languages such as cobol and pascal to make computer softwares, nowadays new generation of programming languages are orbitting, and raised the two popular programming language for programmers and developers that is Java and C++. Both of them have similarities in statement, syntax, expression, and declaration. However, they also have some differences in many cases. Java is better than C++ in Environment system, allocation of memory, and compiling system.
Firstly, Java has advantages because it designed with better Environment system to make user enjoy and comfort. It is designed with comfortable human interface, whereas C++ is designed more abstract than Java. For example: in C++, there are no differences between letters and the capital one. It makes the programmers feeling difficult to differentiate the variable in source code. In addition, Java has more comprehensive library to help the programmer in developing programs. As an analogy, we can likens Java as a chainsaw which can directly used for cutting wood, whereas C++ is an iron and timber that must processed first to be a chainsaw. Furthermore, java uses full OOP(Object Oriented Programming) which is very suitable with aplication development. On the other hand, C++ still uses hybird OOP which is not completely built.
Secondly, the process of making a program is strongly influenced by the ability of memory allocation. Java memory allocator are more convenient than C++. In C++ there are pointers, that is a variable which can store the memory addresses. Pointer is set manually by the programmers causing a risk for a chance of error memory allocation. Moreover, user of C++ language should to think harder to generate dynamic pointer setting in occasion to get efficiency. In contrast, Java don’t need pointers for memory allocation, because it has a garbage allocator. Its features will set up the memory allocation dynamically and automatically, so programmers don’t need to worry about the crash due to memory allocation error.
Thirdly, Java compiling system is better than C++. Java converts source code to binary code as a class file. The file can be accessed by Java Virtual Machine in many different platforms, for example windows, linux, iOS, Symbian, etc. So, programmers just need to compile the program once, but it can be used in many times. Moreover, Java compiling system can reduce the redundancy of class file. In contrast, C++ compiling system converts source code to binary code as execute file. So, the output just can be used in the platform it was compiled.
In conclusion, programming languages is important in this globalization era. Looking for the most famous programming languages, Java and C++, Java has plus points than C++. Java has great environment system, memory allocation and compiling system which is basically needed in developing a program. Therefore, using Java in developing a program will be comfortable and easy to use.
2 comments:
sadis
What you're saying is completely true. I know that everybody must say the same thing, but I just think that you put it in a way that everyone can understand. I'm sure you'll reach so many people with what you've got to say.
Posting Komentar