Results 1 to 5 of 5
- 07-16-2010, 09:13 PM #1
Member
- Join Date
- Jul 2010
- Posts
- 5
- Rep Power
- 0
Is it worth for c++ programmer to learn java?(and about speed difference).
Hi, many people are saying that java is faster and much more otherwise.
So how it is exactly? Please answer only if you are 100% confident about that.
II question. Why Java is so popular, while we have C++ . For rich libraries, ease to learn/use(compared to C++), more beautiful language? Thank you for answers and if you can write without unnecessary information what you get from internet. ;)
-
No one will be able to answer this question then since your criteria for certainty is unrealistic. Seriously.
There's no simple answer for this, but I can tell you that it is much harder to shoot yourself in the foot with Java compared to C++.II question. Why Java is so popular, while we have C++ . For rich libraries, ease to learn/use(compared to C++), more beautiful language?
WTF?Thank you for answers and if you can write without unnecessary information what you get from internet. ;)
- 07-17-2010, 01:43 AM #3
Senior Member
- Join Date
- Feb 2010
- Location
- Waterford, Ireland
- Posts
- 748
- Rep Power
- 4
I will throw in my two cents worth, c++ works closer to the os, java imitates the os with its virtual machine so on average c++ programs will be faster, writing programs might be faster in java but that is most likely determined by your knowledge of either language. Java does not let you away with things like c++ does. E.g. array bounds are not caught at compile time. C++ i guess has more confidence in the programmer ( that is not necessarily a good thing :D )
- 07-17-2010, 07:22 AM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,408
- Blog Entries
- 7
- Rep Power
- 17
That depends: if a program doesn't need to make many OS calls a Java program can be faster; Java runs in three steps: Java source code -> Java byte code -> machine code, while C/C++ transform the source in two steps: C/C++ source code -> machine code; the three step transformation results in better (faster) code; an example: I wrote a Revised Simplex algorithm once in both C++ and Java; it's just a lot of number crunching in sparse matrixes. The Java version was faster in almost all my testcases.
kind regards,
Jos
- 07-17-2010, 10:50 AM #5
Member
- Join Date
- Oct 2009
- Location
- Rotterdam
- Posts
- 52
- Rep Power
- 0
Not to get off topic, but since you are a c++ programmer, could you maybe explain me in a PM how to install the GCC compiler?
It's not as easy as installing the JDK.
As for the topic: You might find that Java has limited capabilities compared to c++. But it does come in handy if you want to make a browser application.
Similar Threads
-
How do you learn java??
By low224 in forum New To JavaReplies: 1Last Post: 12-07-2008, 08:42 PM -
Looking to learn Java.
By Pwhheee in forum New To JavaReplies: 2Last Post: 11-21-2008, 06:16 PM -
Are you getting your market worth? Want to find out?
By MNoone in forum Jobs WantedReplies: 0Last Post: 08-05-2008, 10:47 AM -
Sr. J2EE Applicatin Developer; Dallas-Ft.Worth
By ScottSearch in forum Jobs OfferedReplies: 1Last Post: 04-23-2008, 05:23 PM -
C++ programmer wants to learn java very fast...
By joe saunders in forum New To JavaReplies: 5Last Post: 01-05-2008, 12:26 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks