answersLogoWhite

0


Best Answer

The primary need to convert any language source, including C++, to Java is simply one of portability.

While C++ is itself portable, writing cross-platform code requires that you write code in a more abstract manner than you would when writing for a specific platform, making extensive use of compiler directives to determine which version of each translation unit will be compiled upon which particular platform. This increases code maintenance because you must then maintain separate versions of the platform-specific code, as well as include a different set of headers for each platform, and thus call different functions for each platform. You must also compile the source separately upon each supported platform, which means the code must be as generic as possible in order to be understood by every possible compiler. Thus cross-platform C++ code tends to be limited to the most popular platforms only, which usually means Windows and Unix only.

Java's higher level of abstraction is such that you need only write one set of instructions and compile it one time only. The Java virtual machine handles all the low-level machine specifics, so the same executable will run on any machine that has a Java virtual machine implementation. While this greatly reduces code maintenance and increases portability, the need to interpret the compiled byte code (rather than native machine code which requires no interpretation) reduces performance enormously. Thus the ease of maintenance has to be weighed against the loss of performance to determine if it is a worthwhile exercise.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which is the primary need to develop Java programming from C plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you design android application?

To develop an app on android you will need to learn Java Programming Language You can learn Java from thenewboston on YouTube. Then you can go to developers.android.com and learn how to develop an application


How do you write program in jdk?

JDK stands for Java Development Kit. It is not a programming language. It is a the system using which you can develop programs in Java. You need to have jdk installed in your machine to create java programs.


Why you need java programming?

You don't. There are hundreds, nay thousands, of programming languages, Java is just one of them. Programming languages are used to make computer programs (software); software is basically what makes computers work.


What is Java and do you need it if you have Microsoft Office?

Java is a programming language. It is used for developing applications. There is no direct relation between Java and MS Office for us to decide on which one we need. MS Office provides us with tools like spreadsheet, word document etc whereas Java is a programming language.


What is Java and are updates needed?

Java is a programming language.In IT sector there is a demand of change always so to overcome and deal with the demand there is a need of updating of java.


Do you need to have Java installed?

If you want to develop or run Java based applications, then having Java installed in your system is mandatory. Java Development Kit (JDK) is required if you are going to develop applications and Java Runtime Environment (JRE) is required if you want to run them.


Why do you need objects in Java programming?

Object-oriented programming provides several advantages, including code re-use and code robustness.


Which program should I get to start learning programming in java and javascript?

For a start, you should understand that Java and JavaScript are unrelated languages.You might learn programming at the Udacity website - they have several introductory programming courses, including courses in Java. Even though the courses are announced as paid courses, you can still access the training materials (videos, and many practice activities) for free. The programs you should get - well, the course will tell you what you need, but basically you need to download Java (the developer version); most programming in Java is done in an IDE, so you should get some IDE as well. There are several options for that. But it's best to get started with the course, and get the downloads as you need them.


Is android an example of application software?

Android is Mobile OS and learning Android course can able to make the applications. Basic requirement we need to know Java programming to develop the Android Applications


What is the purpose of a byte in Java?

Java coding uses byte as one of the programming directives to clarify commands. Byte can also be used in the Java code to save memory space when the need arises.


Why does Minecraft need java?

Basically, any program developed with the Java programming language requires Java to be installed on the user's machine. The advantage of doing this is that such a program can run on a large variety of machines.


What did you learn anything useful from high school computer class about java programming?

Java programming is very important because it can help you make web applications. Thanks for one reason but I need more reasons for my opinion piece!