This is a list of differences between Java and C, and assumes that the reader knows less about the latter. It's worth familiarising yourself with all the points, even if you don't fully understand them, then you may be aware of the cause of any problem you might encounter.
Many features of C, particularly its standard library facilities, are not dealt with in any great depth, since you can look those up in help files or manual pages, or a good reference book.
- Portability
- Ease of development
- Speed
- Primitive types
- Comments
- Limited encapsulation
- Enumerations
- Unions
- Type aliasing
- Declarations and definitions
- Empty parameter lists
- Program modularity
- Preprocessing
- Pointers instead of references
- Arrays and pointer arithmetic
-
const
instead offinal
- Inline functions
- Characters and strings
- Dynamic memory management
- Lack of exceptions
-
main()
function - Standard library facilities