Alan Brown wrote:
As a newbie I would like to ask what the difference in application (not
details) is between C++ and Java. In what situations would you use C++
in preference to Java and vice versa?
In general, prefer programming systems that make programmers faster. (And
note that VisualBasic makes them slower, for example.)
So, you might want to go with a very-high level language that rapidly
encodes what you need with minimal futzing
Java is an attempt to impersonat such a high-level language, while keeping
enough {} style syntax to advertize to C++ users.
Use C++ if you like manually managing memory, virtual dispatch, array
bounds, etc. C++ encapsulates these things very well in systems like the
STL, but it still does not allow as much programmer speed as very-high level
languages.
If you need a very large and fast program, you must indulge in manual memory
management, array bounds checking, etc. So use C++ to write things like the
engines of databases or videogames.
And, in any language, write lots of unit tests.
--
Phlip
http://www.c2.com/cgi/wiki?ZeekLand