Java Verses C++ Essay, Research Paper
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.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 describes a new data form, it is a template that defines how an object will look and behave.(Kaj 1996, 8) An object is that particular data structure constructed using the parameters defined by class.(Prata 1995, 5)object oriented programming approach to program design is to first design classes that accurately represent those things with which the program deals. A drawing program, for example, might define classes to represent rectangles, lines, circles, brushes, pens, and the like. The class definitions, recall, include a descriptions of permissible options for each class, such as moving a circle or rotating a line.(Prata 1995, 5)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) Java, although in many respects similar to C++, is actually just a more simplified version of the latter. Java has a C++ like syntax, but it is more purely object oriented, also, memory management, which can be a problem with C++, is no longer a factor with Java, due to the fact that Java incorporates a built in garbage collector, which makes it unnecessary to explicitly free allocated memory.(Kaj 1996, 1) Another difference is that Java, unlike C++, does not contain pointers.(ftc.nrcs.usda.gov/devtools/java/java/noMoreC/index.html) (A pointer is a variable that tells a computer where data is placed.)(Prata 1995, 93) Java does not have an explicit pointer type, instead, it does passes all arrays (information entered into the program and stored in memory) and objects by reference,(ftc.nrcs.usda.gov/devtools/java/java/noMoreC/index.html) meaning that the objects or arrays in question have been defined elsewhere in the program, and the programmer does not have to keep pointing out whthat information is stored. Since Java does not contain pointers, struct and union (two C++ favorites) are not part of the language because they rely on pointers to function.(ftc.nrcs.usda.gov/devtools/java/java/noMoreC/index.html) Java differs from C++ in other ways too, command line arguments that are passed to a Java application are different in number and type than those passed to a C or C++ program. For example, when someone starts a C++ program, the system passes two parameters to it: argc- the number of arguments in the command line, and argv- a pointer to an array of strings that contain the arguments. When a Java application is started, the system passes only one parameter, args- an array of Strings (not a pointer to an array) that contain arguments.ftc.nrcs.usda.gov/devtools/java/java/noMoreC/index.html Speaking of strings, (A string is a series of characters, much like a sentence.)(Prata 1995, 8), they are different in Java. In C++, strings are stored in arrays, in Java strings are treated as their own objects, and do not have to be stored and recalled from a certain place. Java and C++ each have their own advantages. C++ is viewed as a solid, mature, mainstream tool, and it has widespread industry support making it “good from a business perspective. There are countless numbers of companies and government sites that make use of C++, and the number of C++ developers doubles every year. From a business perspective, C++ has many benefits. First, it has a huge installed base, which means there will be multi vendor support for tools, environments, consulting services, etc. C++ is also becoming standardized, there are American and international groups working closely with each other to develop a standard C++ language.(ftc.nrcs.usda.gov/devtools/java/java/noMoreC/index.html) Java, on the other hand is it s own set of benefits. The purely object oriented nature of C++ has enabled the developers of Java to remove language features that can cause security problems or impose ambiguities in the code. One of the biggest benefits of Java is the fact that it is machine independent. Java is compiled into a machine independent byte. 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 been around for a little while and is currently very integrated into the computer community. Just about everyone agrees that C++ is useful and although it may not be the best object oriented programming language out there, it is certainly here to stay.Bibliography. Prata, Stephen. C++ Primer Plus, second edition. Corte Madera, CA: The Waite Group, 1995.. Nygren, Kaj. “Java Course Notes.” Reading material for the 1996 MMS course, 1996 media.it.kth.se/mms/java/CourseDoc.html. “How C, C++, and Java Differ.” 1996 ftc.nrcs.usda.gov/devtools/java/java/noMoreC/index.html. surinam/java/java.html. Baer, David M. “Love it, C/C++, hate it: I love it s portability.” Computerworld 23 October, 1995: 116-119.. Smalley Bowen, Ted. “Java s for real.” Infoworld 4 November, 1996: 1-3.
Другие работы по теме:
Выбор и обоснование языка программирования
Java — объектно-ориентированный язык программирования, разрабатываемый компанией Sun Microsystems с 1991 года и официально выпущенный 23 мая 1995 года. Изначально новый язык программирования назывался Oak (James Gosling) и разрабатывался для бытовой электроники, но впоследствии был переименован в Java и стал использоваться для написания апплетов, приложений и серверного программного обеспечения
Psalm 96 Essay Research Paper The AnalysisPsalm
Psalm 96 Essay, Research Paper The Analysis-Psalm 96 A Psalm of Praise When analyzing a psalm of praise it is important to keep in mind that Psalms are poetry; and therefore do follow some of the rules of poetry. There are usually identifiable elements and structures in a Psalm similar to that those that might be found in a literary poem much like many of us learned and studied in secondary education classes early in our lives.
Ecclesiates 318 Essay Research Paper Interpretation of
Ecclesiates 3:1-8 Essay, Research Paper Interpretation of Ecclesiastes 3:1-8 The Bible verses Ecclesiastes 3:1-8 are Solomon?s words as he is telling of the relationship that we may have with God and of His master plan. We are to understand God?s impeccable timing, absolute control, magnificent grace, and eternal glory.
Information Verses Labor Essay Research Paper I
Information Verses Labor Essay, Research Paper I always have to toot the horn for information verses skilled labor. Coming from a fairly leftist working class person, it may seem a bit odd, but we have to
Hamlet Essay Research Paper The story
Hamlet Essay, Research Paper The story Hamlet is about man s struggle with revenge, when tragedy enters their life. It deals with true consequences of our choices, when we decide what to do about it. The story demanstrates of that when man is obessed with revenge it creates a battle in our own minds of right verses wrong, and good verses evil.
To Her Father With Some Verses Essay
, Research Paper In Anne Bradstreet?s poem, "To Her Father with Some Verses", the speaker expresses to the reader the feeling of never being able to repay her "Father", God, for the gift of life He has offered to her. The feeling of never being able to repay her "Father" is shown through the use of repeated symbolism and the "Father" is represented as God through the use of diction.
For Some Odd And Strange Reason Essay
, Research Paper 1/29/01 For Some Odd & Strange Reason It was a cold and blistering December morning on the campus of SUNY Brockport. Waking up and going to class on these dreadful mornings are a students worst nightmare. But for some odd and strange reason, something possessed me to get up early and retrieve a hot cup of java from the college coffee shop, Jitterbugs.
Hey You Essay Research Paper Rank Site
Hey You Essay, Research Paper Rank Site Name Hits in Hits out 1 4 Free Essays 4 Free Essays offers free essays and term papers for students. 7510 8850 2 EssayMill over 27500 essays, cliff notes, research papers, book reports. Custom writing + homework help. The b 3953 3476 3 Coshe’s Reports on the Net * The most powerful FREE essay search on the net for over 4 years.
Indonesia Essay Research Paper IndonesiaThis report will
Indonesia Essay, Research Paper Indonesia This report will be on the History in Brief of Indonesia, the Government of Indonesia, the island of Java, and the Geography of Indonesia. In early days, the region from India to Japan, including Indonesia, was known to the Europeans as the Indies. Chris Columbus was looking for a westward sea root from Europe to the Indies, when he arrived in America.
Its Quiet Now Essay Research Paper Critical
Its Quiet Now Essay, Research Paper Critical Analysis of ?Its Quiet Now? In ?Its Quiet now? by Geina Mhlope a person witnesses the harshness of apartheid. Through the events of this book the author reveals the violence and problems that come along with apartheid. Geina Mhlope uses man verses man conflict to show the violence and troubles of apartheid.
Criptography Essay Research Paper We are living
Criptography Essay, Research Paper We are living in the age of Digital Revolution, which is swiftly starting to affect every aspect of our life. WebTV is replacing regular TV’s, radio stations are moving into broadcasting life-on-line. All business related operations are rapidly moving to the World Wide Web.
Luke 631 Affect On My Life Essay
, Research Paper There have been many verses that I have read and said, ?what a great verse!?, but nothing has ever impacted in my spiritual walk in God like Luke 6:31. The verse reads, ?Do unto others as you would have them do unto you.? I had first read this verse when I was 8 and had to memorize it for some contest, but I had a greater feeling for its intensity.
Grecian Urn Essay Research Paper A Word
Grecian Urn Essay, Research Paper A Word Is Worth a Thousand Pictures? Shakespeare’s sonnet 18 (”Shall I compare thee to a summer’s day?”) and Keats’ “Ode on a Grecian Urn” were written with a common purpose in mind; to immortalize the subjects of their poems by writing them down in verses for people to read for generations to come.
Programming Languaguages Essay Research Paper Programming LanguagesA
Programming Languaguages Essay, Research Paper Programming Languages A programming language is a set of English-like instructions that includes a set of rules for putting the instructions together to create commands. A translator changes the English-like commands into numeric code that the computer can understand.
Is It Possible To Lose Your Salvation
Essay, Research Paper For the past 2,003 years one of the most debated subjects among the Christians is Can one lose his/her salvation? There are many verses in the Bible that hint toward the answer of the question, but each verse can be interpreted in more than one way. The only way one can find the true answer is by God s special revelation.
Moral Or Immoral Essay Research Paper In
Moral Or Immoral Essay, Research Paper In Martin Luther King Jr.’s essay, A Letter from Birmingham Jail he compares the issues of Moral acts verses Immoral acts. This essay was written in response to a letter some clergymen had written after a direct action march Dr. King had participated in. In their letter the clergymen had praised the local police officers and media for the nonviolent and calm manner in which the situation was handled.
Abstract Of Bill Joy
’s The Dark Side Of Technology Essay, Research Paper In his speech, The Dark Side of Technology, Bill Joy addresses the pros and cons of three new technologies: genetic engineering, nanotechnology, and robotics. Though optimistic about the benefits of these quickly developing and promising technologies, referred to as GNR for short, Joy expresses his concerns about them.
Web Application Servers Essay Research Paper Web
Web Application Servers Essay, Research Paper Web App Servers A new breed application platforms known as web app servers, for internet based applications, has been born. These new application development environments provide the means for internet pages to contain and transfer information to and from the client’s browser.
Legal Cheating Essay Research Paper Legal cheatingI
Legal Cheating Essay, Research Paper Legal cheating I was never really good in Latin, although I had taken it for 5 years. The final exam was near and would decide whether I failed or passed the class. There were just 6 people and all the students were very smart and had an average of about 95%. I had a normal average of 86%.
Book Of Job Essay Research Paper The
Book Of Job Essay, Research Paper The Book of Job, including the epilogue, argues justice is retributive in its nature. Retributive justices states that a just distribution of fairness exists. Throughout the book, Job portrays the idea that good things happen to those who are good, while bad things happen to those who are bad.
Java Essay Research Paper Java is the
Java Essay, Research Paper Java is the substance whose aroma is awakening the Internet community. It is a new programming language developed by Sun Microsystems that has
Java Essay Research Paper Final Term PaperThe
Java Essay, Research Paper Final Term Paper The Java Revolution Java s new-age design is leading the object-oriented programming language design revolution; allowing even greater portability, state of the art security measures, and more extensive reusability. First, a brief description of what makes a programming language object-oriented so that its importance can be realized.
Microsoft Antitrust Editorial Essay Research Paper Microsoft
Microsoft Antitrust Editorial Essay, Research Paper Microsoft: The Big Bully Stealing Your Lunch Money A monopoly, by definition, is a business or group that engages in unfair and often unethical business practices to control an industry and eliminate all competition that might lessen their profits.
Is Cobol Dead Essay Research Paper There
Is Cobol Dead Essay, Research Paper There is common question being asked by many in the programming world. That question is ?Is COBOL dead?? In spite of the years of criticism and all the predictions that some new language will soon replace COBOL, COBOL continues as a language of business data processing.
Is Cobol Dead Essay Research Paper Is
Is Cobol Dead Essay, Research Paper Is COBOL dead? To be completely honest, I originally had no idea. I knew that I took it as programming class last semester, but I didn’t know how it applied to the business world. Nor, had it ever crossed my mind in the 3+ months that I used it. The fact that you asked the question made me wonder myself, so I had to do some reading.
Pbs Essay Research Paper PROCESS BASED SECURITY
Pbs Essay, Research Paper PROCESS BASED SECURITY, WHAT IS IT AND HOW IT WILL CHANGE YOUR COMPUTER?S LIFE This note is for the purpose of explaining a new way to implement operating system security called process-based security. First, an explanation of traditional operating system security is given. Next, an explanation of process-based security is given.
Making A Web Page Essay Research Paper
Making a Web Page For my science project I chose to create a web (internet) page, dealing with science. This project consists of using a computer and a html editor to create a page that can be found on the internet. The next paragraph will explain how to make an internet page. The steps to making a web page to post on the internet, is very easy.
Java Project Essay Research Paper Jennifer
Java Project Essay, Research Paper // Jennifer Farley // Java Term Project import java.awt.*; import java.applet.*; public class scroll extends java.applet.Applet implements Runnable {
Differences Between Java And C Essay Research
Paper DIFFERENCES BETWEEN JAVA AND C++1 INTRODUCTION Since its release in 1995, Java has been hyped in many places, including computer magazines, broadcast news, and the Internet, as the solution to all problems in the application development community. As it has only been around for approximately 4 years now, it is still emerging into the programming language market.
Computer Programmers Essay Research Paper Computer programmers
Computer Programmers Essay, Research Paper Computer programmers are the writers of computer programs. They do this by coding sets of instructions into machine-readable form. Programmers analyze data processing problems and plan, organize, and develop logical sequences of operations to be used by computers in processing information to solve business, scientific, engineering, and other complex or time-consuming problems.
The English Language Essay Research Paper This
The English Language Essay, Research Paper This House affirms that the British Empire was a great success whose effects are still beneficial to the world. The world distribution of English users is divided into three categories : English as a native language; for example, UK, USA, Australia, English as a second language; for example, India, Singapore, Ghana, Philippines, and English as a foreign language; for example, France, Japan, Thailand.There are 72 countries with Englishs as an official language and 9 countries with English as a first language:Australia, Great- Britain, Canada, Ireland, Japan, Luxembourgh, Netherlands, New Zealand, and the USA.