0% found this document useful (0 votes)
50 views1 page

Differences C++ Vs Java

C++ supports multiple inheritance and operator overloading, while Java does not support multiple inheritance through classes and does not support operator overloading. C++ supports pointers and allows pointer programs, whereas Java supports pointers internally but does not allow writing pointer programs. C++ uses a compiler that converts source code to machine code, making it platform dependent, while Java uses a compiler and interpreter - compiling to bytecode then interpreting at runtime - making it platform independent.

Uploaded by

ETL LABS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views1 page

Differences C++ Vs Java

C++ supports multiple inheritance and operator overloading, while Java does not support multiple inheritance through classes and does not support operator overloading. C++ supports pointers and allows pointer programs, whereas Java supports pointers internally but does not allow writing pointer programs. C++ uses a compiler that converts source code to machine code, making it platform dependent, while Java uses a compiler and interpreter - compiling to bytecode then interpreting at runtime - making it platform independent.

Uploaded by

ETL LABS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Differences C++ vs Java

C++ Java
Multiple Java doesn't support multiple inheritance through
C++ supports multiple inheritance.
inheritance class. It can be achieved by interfaces in java.
Operator
C++ supports operator overloading. Java doesn't support operator overloading.
Overloading
Java supports pointer internally. However, you can't
C++ supports pointers. You can write pointer program
Pointers write the pointer program in java. It means java has
in C++.
restricted pointer support in java.
Java uses compiler and interpreter both. Java source
C++ uses compiler only. C++ is compiled and run using code is converted into bytecode at compilation
Compiler and
the compiler which converts source code into time. The interpreter executes this bytecode at
Interpreter
machine code so, C++ is platform dependent. runtime and produces output. Java is interpreted
that is why it is platform independent.

ETL LABS PVT LTD – JAVA PROGRAMMING 24

You might also like