0
Java v/s C++
How does security options differ between Java and C++ What is the difference between them?
1 ответ
+ 1
C++ support destructors, which is automatically invoked when the object is destroyed ..On the other hand Java support automatic garbage collection. It does not support destructors as C++ does.
C++ has no built in support for threads. C++ relies on non-standard third-party libraries for thread support....On the other hand Java has built in support for threads. In Java, there is a Thread class that you inherit to create a new thread and override the run()method.
Mainly java is more secured because of it's memory management which is much secured and lighter than c++.