How is c++ different from java?



How is c++ different from java?..

Answer / Mukesh Kumar

"C++ and Java share some similarities, but they also have significant differences. C++ is a general-purpose programming language that offers more flexibility in terms of memory management, resource allocation, and performance optimization. Java, on the other hand, is designed primarily for building platform-independent applications and has built-in memory management and a simplified syntax compared to C++."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Can we use struct in c++?

1 Answers  


write a program that takes two numbers from user that prints the smallest number

2 Answers  


What is the C-style character string?

1 Answers  


Can we remove an element in a single linked list without traversing? Lets suppose the link list is like this 1 2 3 4 5 6 We need to remove 4 from this list (without traversing from beginning) and the final link list shud be 1 2 3 5 6 only thing we know is the pointer to element "4". How can we remove "4" and link "3" to "5"?

6 Answers   CSC,


3- Write a program to find larger and smaller of the two numbers.

4 Answers   Luminous,


Can I learn c++ without learning c?

1 Answers  


Differentiate between structure and class in c++.

1 Answers  


Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL

1 Answers  


In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that

1 Answers  


Is vector a class in c++?

1 Answers  


What is c++ map?

1 Answers  


What are the benefits of c++?

1 Answers  


Categories