This lesson contains several independent pages that discuss the differences between the Java language and C and C++. If you are primarily interested in these differences, you can step through these pages using the and at the top and bottom of each page.However, if you prefer to learn about the differences between the languages in context of more information just proceed with the other lessons. When applicable those lessons will transport you to one of the pages listed below to get detailed information about the differences between these languages.
C Data Types Not Supported By the Java Language
The Java language does not support three data types that are part of the C and C++ languages: struct, union, and pointer.Operators
There are a few differences in how certain operators in the Java language work as compared to both C and C++.Java Command Line Arguments Differ from C and C++
The command line arguments passed to a Java application are different in number and in type than those passed to a C or C++ program.Java Strings are First-Class Objects
In C and C++, strings are simply a null-terminated array of characters. The Java language uses the String class provided in the java.lang package.Miscellaneous Differences
There are several other minor differences between the C and C++ language and the Java language.