Java is similar to C++, but
-
No preprocessor, global variables, enumerated data types.
-
Methods are always defined directly in the class definitions.
-
The keywords public and private are applied individualy to every
instance value or method.
-
Boolean datatype is boolean, not bool
-
All methods must specify a return type