3 Answers - Sort by: Date | Rating
Java is a purely object oriented programming language .Without classes we cannot write the program in java, but we can write the program in c++.
0
0
Java is a much more mature object-oriented language than C++. C++ was not designed from the ground up as an object-oriented language. It is essentially a modified version of the C programming language, with some object-oriented features inelegantly tacked on.
Java ships with a large set of APIs while C++ does not. Java lacks multiple inheritance. Memory management is handled automatically in Java but manually in C++.
In most contexts, C++ will offer substantially greater performance than Java.
Java offers cross-platform compatibility at the binary level. C++ code, if written carefully, can offer compatibility at the source level, requiring recompilation on each platform. Realistically, however, in most cases, the source will also need to be adjusted somewhat.
Java ships with a large set of APIs while C++ does not. Java lacks multiple inheritance. Memory management is handled automatically in Java but manually in C++.
In most contexts, C++ will offer substantially greater performance than Java.
Java offers cross-platform compatibility at the binary level. C++ code, if written carefully, can offer compatibility at the source level, requiring recompilation on each platform. Realistically, however, in most cases, the source will also need to be adjusted somewhat.
0
1
C++ is an attempt to merge the fast execution speed of the C programming language with the object-oriented approach of programming by Java to give the best of both worlds. Java provides a more robust framework for avoiding the common problems associated with programming languages that make direct access of memory like C, but has less flexibility in terms of complex structures such as mulitple inheritance that is in C++. There are workarounds for each of the deficiencies in Java and C++, so the choice of which language to use would generally come from whether a person has done C programming before, in which case it would be easier to adopt C++. Alternatively, if someone was taught an object oriented approach to programming, then Java is more ideal because you don't have to learn the ways C++ tries to structure the language and syntax to object-oriented programming.
0
1
- Why We Use This Method In Java?
- Why Java Not Supports Multiple Inheritence?
- A Java Program To Get Sports Marks In Student Package And Print Total Marks Of Student?
- The Project Aims To Implement A JAVA Parser? 1- Classes And Functions 2- Arithmetic/logic Expressions 3- If Statement
- How To Get Java On My Lg 260?
- Write A Java Program To Store A Number Find If It Is Positive Or A Negative Number If Positive Print I Am The First?
- How To Update The Sim 3 Expansion?
- What Is An Attribute In Java?
- Do I Have To Write A Main Method In Every Class I Create?
- What How The Step For Make Library Management?
- In Which Process We Can Start Java?
- Define The Concept Of Java Byte Code?
- How To Run Remote Method Invocation In More Machine?
- How To Run Java Remote Method Invocation In More Machine?
- How To Make A Java Program That Will Ask The User To Input A Number And Display All The Even Number And The Sum Of All Even Numbers Based On The Inputted/ Given Numbers?
- Is A Static Variable An Instance?
- How To Compile And Run Java Package?
- What Does Literati-on Mean?
- What Is Abstract Class In Details?
- What Is Meant By Remote Method Invocation In Java?
- What Is Meant By Servlet In Java?
- What Is Latest Technologies In Java?
- Write A Program Using Do…..while Loop To Calculate And Print The First M Fibonacci Numbers?
- What Is The Difference Between Reference &instance Variable?
- Why Java Is Slow?
- What Is The Difference Between Actual And Estimated Budget?
- What Is The Difference Between C, C++ And Java?
- What Is The Difference Between C,c++,java?
- What Is The Actual Meaning Of The Words 'Seminar' And Debate? What Is The Difference Between Them?
- What Would Cause Difference In Pythagorean Theorem Solution And Actual Measurements?
- What Is The Difference Between Java And J2ee?
- What Is The Difference Between .net And Java?
- What's The Difference Between Java And .net?
- What Is The Difference Between C Language And Java Language?
- What Is The Difference Between C, C++ And Java Languages?
- What Is The Difference Between Java And .net?
- What Is The Advantage Of Java Over C++ And What Is The Difference Between Them?

New Comment - Comments are editable for 5 min.