How does java differ from c and c++?



How does java differ from c and c++?..

Answer / Harish Kumar Malik

Java is a high-level object-oriented programming language that is platform independent (written in Java, runs everywhere), while C and C++ are low-level procedural/object-oriented languages designed for system programming. Java uses automatic memory management (garbage collection) unlike C and C++.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is the equivalent of Pascal's Real a) unsigned int b) float c) char

1 Answers  


What is the use of the this pointer?

3 Answers  


Can a constructor throw a exception? How to handle the error when the constructor fails?

1 Answers  


Can I learn c++ as my first language?

1 Answers  


How would perform Pattern Matching in C++?

1 Answers   Genpact,


When you overload member functions, in what ways must they differ?

1 Answers  


How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?

1 Answers  


Which field is used in c++?

1 Answers  


Why was c++ created?

1 Answers  


In c++, what is the difference between method overloading and method overriding?

1 Answers  


Define stacks. Provide an example where they are useful.

1 Answers  


What is class in c++ with example?

1 Answers  


Categories