3. Differences from C++

No typedefs, defines or preprocessors

There is no typedef command, Java uses only classes. There are no #define macros, Java uses constants. Java does not use header files.

No structure or union

Java allows only class definitions.

No functions

Java is a more pure OOP language than C++. It does not allow the definition of pure functions only methods attached to classes.

No multiple inheritance

No goto

No operator overload

No automatic casting

    int i;
    double x = 4.567;
    i = x; ERROR

    It needs a casting operation:

    i = (int) x;

No pointers!

Pointers are a great source of hard to find bugs. Even when dealing with arrays the Java runtime system checks for index problems.

3.1. Audio

Audio in Portuguese