Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

In Security: why is C++ preferred over Java?


  • Please log in to reply

#1
bryan84

bryan84

    Member

  • Member
  • PipPip
  • 47 posts
Greetings!

My question is: Why is security application development for Biometrics/Tracking/Detection applications normally make use of C++ programming language but not Java?

I would appreciate if you can give me details or maybe even give me good sites for me to reference from to learn.

Thanks a lot!
  • 0

Advertisements


#2
lemma

lemma

    Member

  • Member
  • PipPip
  • 15 posts
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
  • 0

#3
Father0fNine

Father0fNine

    Member

  • Member
  • PipPip
  • 29 posts
The biggest reason C++ is preferred over Java could be tradition.

C/C++ was designed for system programming. It was meant to break free from some of the ridgedness of other languages and give the programmer more access to the guts of the system. Produce highly specialized and compact programs. C/C++ programs are loaded directly into the computers run-time space and interact with the CPU/BIOS/Etc directly.

Java was designed to be easy to learn and portable. Write it once and use it "everywhere" sort of mentality. This often leads larger programs, especially when you take into account that Java has to have an interpreter in between the application and the CPU/BIOS/Etc. The presence of the Java Virtual Machine can affect performance, although recent benchmarks show the gap is closing in many situations.
  • 0

#4
Ande_1

Ande_1

    New Member

  • Member
  • Pip
  • 2 posts
I program in both. C++ has been around much longer than Java.
C++ has more available libraries and faster functions than Java.
If a program depends on either numeric accuracy and/or speed of execution, C++ is a must.
Otherwise Java might be better as nore users seem to be learning it these days.

Techies use C and C++ when necessary. For pure speed use C++, but write most code in C.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP