How faster is C++ compared to Java ? I tryed asking this at offical java forum but they deleted my thread...
Printable View
How faster is C++ compared to Java ? I tryed asking this at offical java forum but they deleted my thread...
Do you realize that what you are saying is inflammitory?
http://72.14.203.104/search?q=cache:...s&ct=clnk&cd=1
http://www.kano.net/javabench/
Probably marginally faster, considering C++ has 3 characters compared to 4 characters for Java.
> How faster is C++ compared to Java ?
http://www.albionmich.com/inspiratio...licompare.html
How about just picking the right tool for the job?
Your question is about as meaningful as which is better, a hammer or a screw-driver.
Why do you keep asking?
http://cboard.cprogramming.com/showthread.php?t=77811
the university im planning on going to next summer only teaches Java. unfortunately.
For what kind of degree? Only Java?
At my university, Java is taught first, then C++; from there its the students job to learn other languages (besides obvious cases).
The point is: a programming language is a tool, nothing more. You simply need to decide which tool best suits the problem at hand(Java, C++, Python....whatever)
The speed that a language works is not that important, apart from perhaps game code, where as well written C++ programs can be lightning quick
One thing I find wierd is that in my computer science course they start with java, then end up doing all the top tier classes in C++ (with the exception of programming languages which teaches several)
I vote to lock or delete this thread. The original question was asinine and now it's totally derailed.
It maybe that learning Java would give you a solid foundation for moving on to unserstanding C++. Personally, I had no interst in Java. I am not knocking it, it is a good language with many uses, but C/C++ was more what I needed. When I left school in 1997, I learnt a small C course but then took to learning C++ in my own time.Quote:
One thing I find wierd is that in my computer science course they start with java, then end up doing all the top tier classes in C++ (with the exception of programming languages which teaches several)
> but they deleted my thread...
There's 4 religions out there.
- One considers any question like this inflammatory. Followers of this religion usually are secret believers of one of the next two religions.
- Two other religions have an answer to that question. And they stick to it!
- The forth and last religion know there is no answer. Atheists! But damn me if they aren't the smart ones.
The better question would be "I have the following requirements for foo, what might the pros and cons of a Java or C++ implementation be?".
> I vote to lock or delete this thread.
We'll see what ElastoManiac's first rebuttal to the arguments are....
ok, I'll openly admit I'm in one of these two religions :DQuote:
Originally Posted by Mario F.
in all seriousness, Java is slower in execution for a number of reasons, not the least of which is the jvm.
add that you have to build the framework for your object, every time you want to use it, in java and you have bloated code to start with.
[ essentially, java requires scaffolding around every object in the code to support the code from falling over itself ]
a program in C++ can be badly written, with tons of bloat and perform slowly as well, but C++ does not require such bloat as java does.
the jvm issue isn't that it's needed, it's that there is more than one.
sorry, eclipse framework to support multiple jvms is just more bloat in the language, not a smart choice.
it's a cop-out, and the eclipse team should all be shot for stupidity.
hence the reason why many beginner programmers would choose C++ over Java. Especially for games ( being that was their ideal aim )
Now that paragraph didn't really make sense. What has Eclipse to do with the language?Quote:
Originally Posted by Jaqui