Java vs C++
Since their inception, computers have played an increasingly important role in today's society. Advancements in technology have enabled computers to become faster and cheaper. Today, the majority of families own a home computer that is vastly more powerful than giant mainframes of years gone by. Computer hardware has been evolving rapidly with no end in sight, and with all of the advancements in computer hardware come advancements in computer software; gone are the days when FORTRAN and COBOL were the languages of choice. Today,vvv two hot new object oriented programming languages have entered the computer programming arena, Java and C++, this paper will examine the similarities and differences between these new languages.Both Java and C++ are object oriented programming languages, but what does that mean? Object oriented programming (OOP) emphasizes data, instead of algorithms for solving problems. Instead of trying to fit a problem to the procedural approach of a language, OOP attempts to fit the language to the problem, in other words, OOP is structured to produce an answer without changing the question. Object oriented programming involves two separate parts, class and objects. Class is a specification that describe
2. Nygren, Kaj. "Java Course Notes." Reading material for the 1996 MMS course, 1996 http://media.it.kth.se/mms/java/CourseDoc.html The main advantages of OOP, besides being able to create more complex software, and develop answers without changing the questions, are numerous. OOP facilitates creating reusable code, which can save a lot of work. Information can be hidden to safeguard data from improper access. Polymorphism lets the programmer create multiple definitions for operators and functions, with the programming context determining which definition is used, also Inheritance lets the programmer derive new classes from older ones. When using OOP, the programmer can focus on representing concepts, instead of concentrating on tasks. (Prata 1995, 6) 1. Prata, Stephen. C++ Primer Plus, second edition. Corte Madera, CA: The Waite Group, 1995. code. The byte code is then interpreted by a virtual machine running on the host computer. This is what makes Java so attractive for web authoring, browsers like Netscape can execute Java programs by interpreting the bytecode, regardless of what type of machine the browser is running on. There is currently a large debate going on over whether Java is all that it is cracked up to be. Some say that Java is a wonder language that will eventually support it's own platform and leave the Windows OS in the dust. There are others that say Java not nearly as good as everyone says it is, and besides some nifty web applets, Java is not very useful. These people should bear in mind that Java is relatively new, and not too many software developers have started using it. If Java can live up to it's potential as a truly object oriented programming language, it could change the face of computing as we know it. C++, on the other hand, has
Some common words found in the essay are:
Java C++, C++ C++, Windows OS, , FORTRAN COBOL, Love C/C++, object oriented, Notes Reading, Ted Java's, oriented programming, object oriented programming, C++ Java, java c++, CA Waite, oriented programming languages, system passes, array strings, computer hardware, advancements computer, it's own, purely object oriented, oriented programming language, c++ program, programming languages,
Approximate Word count = 1213
Approximate Pages = 5 (250 words per page double spaced)
|