When Sun's developers created Java, they tried to keep the syntax for Java
similar to the syntax for C++ so it would be easy for C++ programmers to
learn Java. In addition, they designed Java so its applications can be run on
any computer platform. In contrast, C++ needs to have a specific compiler for
each platform. Java was also designed to automatically handle many operations
involving the creation and destruction of memory. This is a key reason why
it's easier to develop programs and write bug-free code with Java than with
C++. To provide these features, the developers of Java had to sacrifice some
speed (or performance) when compared to C++. For many types of applications,
however, Java's relative slowness is not an issue.
Microsoft's Visual C# language is similar to Java in many ways. Like Java, C#
uses a syntax that's similar to C++ and that automatically hand... (more)