ok. im just saying that i found c++ insanely easy, and couldnt understand a word of java.
what do you expect me to not argue my point? its the internet, if it looks like im losing, of course im going to resort to name calling.
Spoiler for reasons C++ is better:
C++ allows for calls to native system libraries, instead of relying on java interfaces.
C++ is backwards compatible with C, in almost all cases, whereas java is not backwards compatible with any other proramming language.
C++ is more straightforward, and while java offers shortcuts, it has a much higher learning curve than C++.
C++ also allows you do directly manage your memory allocation, whereas java tries to handle that by itself, which causes it to run much slower than C++.
C++ was designed for system programming, and offers much more power than Java does.
C++ allows namespace level constants, variables, and functions. All such Java declarations must be inside a class or interface.
C++ allows default values for arguments of a function/method, Java does not. in order to get a similar result in java, you have to use method overloading, which is beyond the scope of a beginner.
Java offers automatic garbage collection. Memory management in C++ is usually done through constructors, destructors, and smart pointers. The C++ standard permits garbage collection, but does not require it; garbage collection is rarely used in practice. The enforced use of automatic garbage collection means that writing real-time software can be difficult in Java.
In C++ one can construct pointers to pointers, pointers to ints and doubles, and pointers to arbitrary memory locations. Java references only access objects and arrays, never primitives, other references, or arbitrary memory locations.
C++ provides cross-platform access to many features typically available in platform-specific libraries. Direct access from Java to native operating system and hardware functions requires the use of the Java Native Interface.
not only that, but
C++ is not a trademark of any company or organization and is not owned by any individual. Java is a trademark of Sun Microsystems, which is now owned by Oracle.
(This post was last modified: 26/12/2010 08:21 PM by trademark91.)