hi i'm not sure if any is better then the other in your stated case but you might want to check this 1997 critical comparison document:http://www.objectmen...les/javacpp.pdf
while an expert prefers Java over C++ and says:
Unlike C++, Java is designed to provide several inherent security features from ground-up and at all levels from the Java language constructs to the Java runtime environment and from the class libraries to the complete application.
With the above core security features at the programming language level, Java promises a secure programming environment advantage over using C++.
The language allows declaring classes or methods as final. Any classes or methods that are declared as final cannot be overridden. This helps to protect the code from malicious attacks such as creating a subclass and substituting it for the original class and override methods.
you can check the full article here: http://searchsoftwar...1284696,00.html
for more related information, you might be interested in this:http://forums.sun.co...hreadID=5423247