Domanda di colloquio di Tata Consultancy Services

difference between c and c++

Risposta di colloquio

Anonimo

16 dic 2020

C++ platform dependent, must be compiled on every platform. Java platform independent. C++ compiled and linked into executable, Java compiled into bytecode and interpreted by virtual machine C++ can overload operators and methods (virtual), Java can only overload methods (essentially all virtual) C++ manual memory management (new and delete), Java automatic garbage collection C++ no support for documentation comments, Java does support documentation comments C++ no direct support for threads, Java has thread class