--- In [email protected], "Brett W. McCoy" <[EMAIL PROTECTED]> wrote: > > On 1/20/07, Bilal Jan <[EMAIL PROTECTED]> wrote: > > > i am a student of comp engg and i have to choose one language > > JAVA or VC++ in my next term elective cource. i have heard that > > VC++ is more verstile and is also in now a dayz where as Java > > has not much applications area. > > can u plz guide me wh language is better . > > VC++ (I assume you mean Visual C++) is not a language, it's a > specific implementation from Microsoft. > > Of course, if you ask in a C++ group like this one which is > better, Java (note that it's not all capitalized) or C++, of > course everyone will say C++ is better. > > You'll have to decide which language suits your needs better. > I use both C++ and Java in my work, and I do far prefer C++... > Java gets a bit too restrictive, and you really have to get it > jump through hoops for real-time performance and non-intrusive > garbage collection.
In addition to Brett's note, I would like to add that with Java it's far easier to write platform-independent code than with C++ (as far as I know C++, and I'm really no expert for C++). A few general terms (this is my personal opinion, no one has to share it): - Even well written Java code will usually execute slower than well written C++ code. - The basics of Java are easy to learn, but GUI programming takes quite some time to sincerely dive into. - In my opinion C++ is definitely not suitable for newbies. - Java offers loads of classes which implement huge amounts of diverse functionality, so quite often you won't have to write much code on your own but you'll have to find suitable classes on the web. Or in the SDK documentation. - Java is more tightly standardised, mostly in terms of data types, compiler dependencies, and language concepts. My personal opinion is: Learn Java. As soon as you encounter its weak points, you will know why many people choose C++. And if you don't encounter the weaknesses of Java at all, all the better for you. Regards, Nico
