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

Java & CPP

Java and C++ differ significantly in their programming concepts and applications. Java does not support pointers, multiple inheritance, or structures/unions, while C++ does. Additionally, Java is platform-independent and primarily used for web-based applications, whereas C++ is platform-dependent and mainly used for desktop applications.

Uploaded by

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

Java & CPP

Java and C++ differ significantly in their programming concepts and applications. Java does not support pointers, multiple inheritance, or structures/unions, while C++ does. Additionally, Java is platform-independent and primarily used for web-based applications, whereas C++ is platform-dependent and mainly used for desktop applications.

Uploaded by

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

Java C++

Java does't support Pointer concept It support pointer concept.


It does't support multiple inheritances. It support multiple inheritance
It have structure and union
Java does not include structures or unions.
concept.
Java includes automatic garbage C++ requires explicit memory
collection. management
C++ supports both method
Java has method overloading, but no
overloading and operator
operator overloading.
overloading.
It is platform independent programming It is platform dependent
language programming language.
It is mainly used for design web based It is used for design only desktop
application but also use for develop application like OS, Compiler
desktop application. etc.
Java uses compiler and interpreter both C++ use only Compiler.
Java is high level programming language
C++ is more nearer to hardware
in java we write code like simple English
then Java
language.

You might also like