View Single Post
Old 05-25-2006, 02:35 PM   #13 (permalink)
HopeDagger
Luigi’s Pizza
 
HopeDagger's Avatar
 
Join Date: May 2006
Location: Ontario, Canada
Posts: 119
Reputation: 10
Send a message via MSN to HopeDagger
Default

Quote:
Originally Posted by TLM
- It is just as fast as C++ (some links say it's faster!!)
No, Java is slower than C++. Lots of websites try to create esoteric testing scenarios that would make Java faster, but in the other 98% of the programs you'll wite, C++ will always take the lead. This is simply because Java runs on a Virtual Machine, and is interpreted bytecode. C++ on the other hand is pure machine code that requires no interpretation. True that JIT compiling exists for Java, but it still doesn't give it the same edge as C++, due to inherent things to Java that slow it down, like automatic garbage collection, auto array bounds checking, etc.

Not to say that Java isn't comparitively fast, though. It's perfectly suitable for most non-commercial game projects.

Quote:
- It is easier to learn than C++ (this isnt 100% fact, just what most sites said.)
I agree with you there. Although Java's enforced OOP can make it daunting on a beginner, the removal of pointers and memory-management nonsense makes things feel a LOT cleaner and easier to grasp. C++ still has a lot more nice IDEs though.
__________________
Gauntlets of Recursion (+5) - My game development journal.
HopeDagger is offline