Skip to content

Q 12 - Java vs Class #15

Discussion options

You must be logged in to vote

🔍 C++ vs Java Comparison

Basis C++ Java
Platform Platform Dependent Platform Independent
Application Mainly used for System Programming Mainly used for Application Programming
Hardware Nearer to hardware Not so interactive with hardware
Global Scope Supports global and namespace scope Does not support global scope
Not Supporting - -
🔹 Java supports (C++ doesn't):
• Thread support
• Documentation comments
• Unsigned right shift (>>>)
🔹 C++ supports (Java doesn't):
• goto
• Pointers
• Call by reference
• Structures and Unions
• Multiple Inheritance
• Virtual Functions
OOPs Object-oriented language but not a single root hierarchy Object-oriented language with single root hierarchy…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AmjustGettingStarted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants