Changes from C++
- No multiple inheritance
- Automatically handles memory management
- No pointers to arbitrary locations in memory, no pointer arithmetic, no references
- Everything is an object (on the whole, with a few exceptions)
- Multi-threading is a natural part of the language
- No functions, header files, or global variables
- No macros, preprocessing, or conditional compilation
- No variable-length parameter lists, no default parameters
- No templates (templates aren't needed because every object inherits from class Object)
- No unions
C Keywords not available
asm, auto, enum,
extern, register,
signed, sizeof, struct,
typedef, union, unsigned,
wchar_t
C++ Keywords not available
bool, const_cast,
delete, dynamic_cast,
friend, inline, mutable,
namespace, reinterpret_cast,
static_cast, template,
typeid, using, virtual
Resources URL:
notes/java/resources
Sources URL:
notes/java/sources
asm, auto, enum,
extern, register,
signed, sizeof, struct,
typedef, union, unsigned,
wchar_tbool,const_cast,delete,dynamic_cast,friend,inline,mutable,namespace,reinterpret_cast,static_cast,template,typeid,using,virtual
Resources URL:
notes/java/resources
Sources URL:
notes/java/sources