what is the difference between java & c++?
631
C++ is compiled and run using the compiler which converts source code into machine code so, C++ is platform dependent. Java uses compiler and interpreter both. Java source code is converted into bytecode at compilation time. ... Java is interpreted that is why it is platform independent.
857622
The main difference between Java and any other programming language is the unique method in which Java code is executed. Unlike compiled languages such as C++, Java is compiled into bytecode which can run on any device with the Java Virtual Machine (JVM).
1394716
Differences between C and C++ are: ... C does no support polymorphism, encapsulation, and inheritance which means that C does not support object oriented programming. C++ supports polymorphism, encapsulation, and inheritance because it is an object oriented programming language. C is a subset of C++.
884268
While C++ is an object-oriented language, C# is considered a component-oriented programming language. ... C++ compiles into machine code, while C# compiles to CLR, which is interpreted by ASP.NET. C++ requires you to handle memory manually, but C# runs in a virtual machine which can automatically handle memory management.
603977
Java does not support pointers, unions, operator overloading and structure. C++ supports pointers, unions, operator overloading and structure. Java supports garbage collection. C++ does not supports garbage collection.
1372450
C++ is an object-oriented language, which gave a major advantage over C because C was a procedural language, whereas, C++, just like C# is object-oriented.
425537
Whereas object oriented programming languages like C++ and Java programming language follows bottom up approach. Top down approach begins with high level design and ends with low level design or development. Whereas, bottom up approach begins with low level design or development and ends with high level design.
1052321
The biggest difference between the two languages is that Java is a statically typed and Python is a dynamically typed. Python is strongly but dynamically typed.
815728
JDK is the Java Development Kit, JRE is the Java Runtime Environment, Java SE is the standard edition, and so on.
675894
Java is a class-based Object Oriented language whereas C# is Object-Oriented, functional, strong typing, component-oriented. Java doesn't support for operator overloading whereas C# provides operator overloading for multiple operators. Java does not support pointers while C# supports pointer only in an unsafe mode.
1277898
Advantages of Java: Simple: Java was designed to be easy to use, write, compile, debug, and learn than other programming languages. Java is much simpler than C++ because Java uses automatic memory allocation and garbage collection. Object-Oriented: Allows you to create modular programs and reusable code.
373025
Java and Python have many similarities. Both languages have strong cross-platform support and extensive standard libraries. ... Both languages compile to bytecode, but Python is (usually) compiled at runtime. They are both members of the Algol family, although Python deviates further from C/C++ than Java does.
1243880
While they are both rooted in C, they are two completely different languages. A major difference is that Objective-C is focused on runtime-decisions for dispatching and heavily depends on its runtime library to handle inheritance and polymorphism, while in C++ the focus usually lies on static, compile time, decisions.
946613
C++ is built upon C. ... C++ is both a procedural and object-oriented programing language. Hence, C++ has features specific to procedural languages as well as features of object-oriented programming language. Java is a completely object-oriented programming language.
810847
Large parts of Android are written in Java and its APIs are designed to be called primarily from Java. It is possible to develop C and C++ app using the Android Native Development Kit (NDK), however it isn't something that Google promotes. According to Google, “the NDK will not benefit most apps.
10400
Java applications are run in a virtual machine or web browser while JavaScript is run on a web browser. Java code is compiled whereas while JavaScript code is in text and in a web page. JavaScript is an OOP scripting language, whereas Java is an OOP programming language.
135638
One thing to note that you need to compile C++ and interpret Python. The interpretation of code is always slower than the compilation. Additionally, since C++ indicates the variable type, it won't signal type errors during runtime. Overall, in terms of performance, C++ is a clear winner when compared to Python.