0

Java v/s C++

How does security options differ between Java and C++ What is the difference between them?

6th Dec 2016, 1:34 PM
Himanshu
Himanshu - avatar
1 Réponse
+ 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++.
6th Dec 2016, 1:54 PM
Vipul Walia
Vipul Walia - avatar